MSX-DOS 1 Programming
Environment and functions
Currently the best thing is to read the MSX-DOS 2 documentation. MSX-DOS 1 related commands are marked clearly in the documentation. Also some CP/M documentation may be useful.
MSX-DOS 2 Environment description: http://map.grauw.nl/resources/dos2_environment.php
MSX-DOS 2 Function calls: http://map.grauw.nl/resources/dos2_functioncalls.php
Example
Example of simple file load routine for MSX-DOS:
FCB EQU #5C ; FCB of 1st commandline parameter ORG #100 LD DE,#4000 ;FREE SPACE LD C,#1A ;SET DATA TRANSFER ADDRESS CALL 5 LD HL,0 ; Reset random record number to 0 LD (FCB+33),HL LD (FCB+35),HL LD DE,FCB LD C,#F ;Open PUSH DE CALL 5 POP DE LD HL,1 ; Set record size to 1 LD (FCB+#E),HL LD HL,#4000 LD C,#27 ;Read max 16K PUSH DE CALL 5 POP DE LD C,#10 ;Close CALL 5 RET