implemented CIOUT routine
This commit is contained in:
1 parent
cfadaf2684
commit
6d521967e5
4 files changed
+46
-1
No files matched your search
+14
-1
@@ -2,7 +2,20 @@
|
||||
|
||||
unlsn:
|
||||
|
||||
;; This trivial routine is documented in 'Compute's Mapping the Commodore 64', page 224
|
||||
;; This routine is documented in 'Compute's Mapping the Commodore 64', page 224
|
||||
|
||||
;; First check whether we have something to be sent in the buffer
|
||||
lda C3PO
|
||||
beq +
|
||||
lda BSOUR
|
||||
sec ; send it with EOI
|
||||
jsr iec_tx_byte ; XXX what about the status of this operation?
|
||||
;; Mark the buffer as invalid
|
||||
lda #$00
|
||||
sta C3PO
|
||||
*
|
||||
;; Buffer empty send the command
|
||||
lda #$3F
|
||||
jmp iec_tx_command
|
||||
|
||||
|
||||
Reference in new issue
Block a user