Ok. I don't have time to think of a better solution (Any solution is better than this one), but it is better than nothing, so here it is:
START:
MOV CX,0FFFFh ;the number to turn to Decimal
MOV AX,0
MOV BX,0
MOV DL,0
INC_LOOP:
INC AL ;AL is the first...
If you want to read the file from the command line here is the code:
Source DB 32 dup(0) ;Place to keep name
MOV BX,80h
XOR CX,CX
MOV CL,[BX] ;Num of chars in CL
SUB CX,1 ;minus the space
MOV BX,82h ;start of string
MOV...
OK. If you want the user to enter the file name here is the code:
Source DB 32 dup(0) ;Place to keep name
MOV AX,SEG Source
MOV DX,OFFSET Source
;------------------------------
MOV DS,AX
MOV AH,0Ah ;Code to read string
MOV...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.