added proper buffer handling to several IEC commands
This commit is contained in:
1 parent
fea097e795
commit
504f0ffb81
10 files changed
+67
-34
No files matched your search
@@ -1,5 +1,5 @@
|
||||
|
||||
;; Routine to finalize these IEC commands which do not end in turnaround
|
||||
;; Routine to finalize some IEC commands - which do not end in turnaround and are not followed by others
|
||||
;; Implemented based on https://www.pagetable.com/?p=1135, https://github.com/mist64/cbmbus_doc
|
||||
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
|
||||
;; Expects byte to send in BSOUR; Carry flag set = signal EOI
|
||||
|
||||
;; XXX is it OK to use BSOUR for data exchange? Maybe there is a better way?
|
||||
|
||||
iec_tx_common:
|
||||
|
||||
|
||||
@@ -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
|
||||
Reference in new issue
Block a user