implemented SAVE command
This commit is contained in:
1 parent
8a16ce3934
commit
b008d9f4a9
3 files changed
+35
-14
No files matched your search
@@ -8,7 +8,7 @@ cmd_save:
|
||||
// Set default device and secondary address; channel is not important now
|
||||
|
||||
jsr select_device
|
||||
ldy #$00 // secondary address
|
||||
ldy #$00
|
||||
jsr JSETFLS
|
||||
|
||||
// Fetch the file name
|
||||
@@ -16,10 +16,24 @@ cmd_save:
|
||||
jsr fetch_filename
|
||||
bcs_16 do_MISSING_FILENAME_error
|
||||
|
||||
// Try to fetch device
|
||||
|
||||
jsr fetch_device_secondary
|
||||
|
||||
// Setup the start and end addresses
|
||||
|
||||
lda #TXTTAB
|
||||
|
||||
// XXX - finish the implementation
|
||||
// Setup the end address
|
||||
|
||||
ldx VARTAB+0
|
||||
ldy VARTAB+1
|
||||
|
||||
// Perform saving
|
||||
|
||||
jsr JSAVE
|
||||
jsr cmd_load_save_handle_result
|
||||
|
||||
// The end
|
||||
|
||||
jmp basic_main_loop
|
||||
Reference in new issue
Block a user