Hi all,
I am doing some small tests to learn how to handle disk files over MSX-DOS. But I am having problems in understanding the official documentation. Could I get some help?
1- Can I open a file directly with DOS' scratch area FCB (5Ch or 6Ch)?
2- If I want to open some file, do I have to manually setup my own "non-opened" FCB?
3- How do I properly use that sequential reading (or any other reading function)?
Here is what I have done so far:
ld a,(ArgLen) cp 0 jp z,Usage ; Try to open the file passed through command line ld de,SysFCB ld c,FOPEN call BDOS cp $FF ; Check if operation failed jp z,FileNotFound ; Close file ld de,SysFCB ld c,FCLOSE call BDOS
I don't know how to correctly fill the file-reading parameters, so I didn't even start trying
Login or register to post comments