Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- LoadExample
- ld hl,FileDescriptor
- ld c,#13 ;#3D13 C=#13: copy the file descriptor to TR-DOS system variables
- call #3D13
- xor a
- ld (#5CF9),a ;#00: load, #FF: verify
- dec a ;load the file to an address in HL
- ld hl,MyAddress
- ld c,#0E
- call #3D13 ;#3D13 C=#0E: load/save file
- ret
- FileDescriptor
- DEFB "FILENAME" ;8 characters
- DEFB "C" ;file type: code
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement