I'm trying to read a byte from a file.
I open it...
mov ax, 3D01h
mov dx, offset fileName
int 21h
...and succeed - I get 0006 in ax, then move it to bx before I try to actually read a byte with...
mov ah, 3Fh
mov cx, 01h
mov dx, offset buffer
int 21h
...where buffer is a db 0.
I keep getting a CF = 1, and AX = 05h, which means something like "access violation" as far as I know.
Any comments?
I open it...
mov ax, 3D01h
mov dx, offset fileName
int 21h
...and succeed - I get 0006 in ax, then move it to bx before I try to actually read a byte with...
mov ah, 3Fh
mov cx, 01h
mov dx, offset buffer
int 21h
...where buffer is a db 0.
I keep getting a CF = 1, and AX = 05h, which means something like "access violation" as far as I know.
Any comments?