BIOS/DOS CALLS – FILE MANIPULATION
ASSUME CS: CODE, DS: DATA
DATA SEGMENT
FILENAME DB “SAMPLE.DAT”, “$”
MSG DB 0DH, 0AH, “FILE NOT CREATED”, ODH, OAH, “$”
DATA ENDS
CODE SEGMENT
START: MOV AX, DATA
MOV DS,
AX
MOV DX,
OFFSET FILENAME
MOV CX,
00H
MOV AH,
3CH
INT 21H
JNC
LOOP1
MOV AX,
DATA
MOV DS,
AX
MOV DX,
OFFSET MSG
MOV AH,
09H
INT 21H
LOOP1 MOV AH, 4CH
INT 21H
CODE ENDS
END START
Comments
Post a Comment