LOAD command is now able to load file from drive 8

This commit is contained in:
FeralChild64 committed 2019-07-10 17:46:44 +02:00
1 parent f911eed0c3
commit 3039c108cb
4 files changed
+23 -13

No files matched your search

+10 -2
View File
@@ -158,7 +158,7 @@ load_loop:
bne +
inc load_save_start_ptr+1
;; If we wrap around to $0000, then this is bad.
beq load_error
beq load_error
*
;; Check for EOI -- if so, read one last byte
lda IOSTATUS
@@ -167,13 +167,21 @@ load_loop:
load_done:
;; Close file on drive
;; Command drive to stop talking and to close the file
jsr untlk
;; XXX XXX code below runs into infinite loop - so for now just quit
clc
cli
rts
lda current_device_number
jsr listen
lda #$e0
jsr iec_tx_command
;; Tell drive to unlisten
jsr unlsn