more work on SAVE routine

This commit is contained in:
FeralChild64 committed 2019-11-06 17:29:27 +01:00
1 parent fc9a95116f
commit 86e8bcbe7f
3 files changed
+31 -16

No files matched your search

+31
View File
@@ -0,0 +1,31 @@
//
// Common part of CLOSE and LOAD/SAVE routines for IEC
//
#if CONFIG_IEC
iec_close_load:
tax
// Command drive to stop talking before closing the file
jsr UNTLK
txa
jsr LISTEN
lda #$E0 // CLOSE command
sta TBTCNT
jsr iec_tx_command
jsr iec_tx_command_finalize
// Tell drive to unlisten
jsr UNLSN
rts
#endif // CONFIG_IEC