drive led is now turned OFF after @$

This commit is contained in:
FeralChild64 committed 2019-08-05 18:22:31 +02:00
1 parent d5d6581901
commit a79564b374
2 files changed
+27 -13

No files matched your search

+26 -1
View File
@@ -26,8 +26,13 @@ close:
;; IEC device
jsr iec_tx_flush ; make sure no byte is awaiting
*
lda SAT, y ; get secondary address
cmp #$60
bne +
;; workaround for using CLOSE on reading executable - XXX is this a proper way?
jsr close_load
jmp close_remove_from_table
*
ora $E0 ; CLOSE command
sta IEC_TMP2
jsr iec_tx_command
@@ -57,3 +62,23 @@ close_error_not_found:
sec ; report success - not sure if original CLOSE does this, but it's nevertheless a good practice
rts
close_load: ; entry also for LOAD routine
tax
;; Command drive to stop talking and to close the file
jsr untlk
txa
jsr listen
lda #$E0 ; CLOSE command
sta IEC_TMP2
jsr iec_tx_command
jsr iec_tx_command_finalize
;; Tell drive to unlisten
jsr unlsn
rts
+1 -12
View File
@@ -125,19 +125,8 @@ load_loop:
;; Close file on drive
;; Command drive to stop talking and to close the file
jsr untlk
lda current_device_number
jsr listen
lda #$E0
sta IEC_TMP2
jsr iec_tx_command
jsr iec_tx_command_finalize
;; Tell drive to unlisten
jsr unlsn
jsr close_load
;; Return last address
jmp lvs_return_last_address