|
File IO in 8086
Open a file . This is only a procdure. U can go to index to get other procedures. for reading and writing files using 8086 assembly language
fopen proc near ; requires si (offset filename)
mov ah,3dh ; on error cf is set and returns error code in
mov dx,si ; ax
mov al,02h
int 21h
jc error_fopen_12
mov word ptr [file_handle],ax
ret
error_fopen_12:
stc
ret
endp
file_handle dw 0
|