IEC support is now optional

This commit is contained in:
FeralChild64 committed 2019-10-31 17:33:30 +01:00
1 parent c03c7abf45
commit 65c27f4dd4
12 files changed
+64 -36

No files matched your search

+41
View File
@@ -0,0 +1,41 @@
//
// Sends file (stream) name to IEC device
//
#if CONFIG_IEC
iec_send_file_name:
ldy #0
iec_send_file_name_loop:
cpy FNLEN
beq iec_send_file_name_done
#if CONFIG_MEMORY_MODEL_60K
ldx #<FNADDR+0
jsr peek_under_roms
#else // CONFIG_MEMORY_MODEL_38K
lda (FNADDR),y
#endif
iny
// Set Carry flag on the last file name character, to mark EOI
cpy FNLEN
clc
bne !+
sec
!:
// Transmit one character
sta TBTCNT
jsr iec_tx_byte
jmp iec_send_file_name_loop
iec_send_file_name_done:
jsr UNLSN
rts
#endif // CONFIG_IEC