initial SAVE implementation

This commit is contained in:
FeralChild64 committed 2019-11-05 17:09:57 +01:00
1 parent 6f39064916
commit b860322a09
6 files changed
+135 -45

No files matched your search

+41
View File
@@ -0,0 +1,41 @@
//
// 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
iec_close_save:
tax
// Command drive to stop listening before closing the file
jsr UNLSN
bne !- // branch alwayys
#endif // CONFIG_IEC