further IO stack refactoring

This commit is contained in:
FeralChild64 committed 2019-10-29 17:03:13 +01:00
1 parent 6fa2c5b570
commit e9140607bc
41 files changed
+131 -82

No files matched your search

+30
View File
@@ -0,0 +1,30 @@
//
// IEC part of the CLRCHN routine
//
#if CONFIG_IEC
clrchn_iec:
// Check input device
lda DFLTN
jsr iec_check_devnum_oc
bcs !+
// It was IEC device - send UNTALK first
jsr UNTLK
!:
// Check output device
lda DFLTO
jsr iec_check_devnum_oc
// If it was IEC device - send UNLSN first
bcc_far UNLSN
rts
#endif // CONFIG_IEC