Files
open-roms/c64/kernal/iec/iec_tx_flush.s
T

27 lines
370 B
ArmAsm

#if ROM_LAYOUT_STD || (ROM_LAYOUT_M65 && SEGMENT_KERNAL_0)
// Flush the IEC output buffer (if not empty) - send byte with EOI
//
// Preserves .X, .Y and .A registers
#if CONFIG_IEC
iec_tx_flush:
pha
lda C3PO
beq !+
sec // send it with EOI
jsr iec_tx_byte // send the command regardless of the status
!:
pla
rts
#endif // CONFIG_IEC
#endif // ROM layout