added proper buffer handling to several IEC commands

This commit is contained in:
FeralChild64 committed 2019-07-25 17:07:33 +02:00
1 parent fea097e795
commit 504f0ffb81
10 files changed
+67 -34

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
;; Flush the IEC output buffer (if not empty) - send byte with EOI
;;
;; Preserves .X, .Y and .A registers
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