commented-out some dead code, improved ATN handling
This commit is contained in:
1 parent
76b39abd8e
commit
24a8e52ad3
2 files changed
+17
-12
No files matched your search
+12
-10
@@ -63,17 +63,19 @@ kernalstatus_reset:
|
||||
sta IOSTATUS
|
||||
rts
|
||||
|
||||
kernalstatus_TIMEOUT_WRITE: // XXX detect this!
|
||||
lda IOSTATUS
|
||||
ora #K_STS_TIMEOUT_WRITE
|
||||
sta IOSTATUS
|
||||
rts
|
||||
// The following two statuses are currentl not implemented - and most likely not really needed
|
||||
|
||||
kernalstatus_TIMEOUT_READ: // XXX detect this!
|
||||
lda IOSTATUS
|
||||
ora #K_STS_TIMEOUT_READ
|
||||
sta IOSTATUS
|
||||
rts
|
||||
// kernalstatus_TIMEOUT_WRITE:
|
||||
// lda IOSTATUS
|
||||
// ora #K_STS_TIMEOUT_WRITE
|
||||
// sta IOSTATUS
|
||||
// rts
|
||||
|
||||
// kernalstatus_TIMEOUT_READ:
|
||||
// lda IOSTATUS
|
||||
// ora #K_STS_TIMEOUT_READ
|
||||
// sta IOSTATUS
|
||||
// rts
|
||||
|
||||
kernalstatus_EOI:
|
||||
lda IOSTATUS
|
||||
|
||||
@@ -20,6 +20,9 @@ iec_tx_byte_jiffydos:
|
||||
phx_trash_a
|
||||
phy_trash_a
|
||||
|
||||
// Make sure we are not sending data on ATN
|
||||
jsr iec_release_atn
|
||||
|
||||
// Store previous sprite status on stack
|
||||
jsr jiffydos_prepare
|
||||
pha
|
||||
@@ -45,7 +48,7 @@ iec_tx_byte_jiffydos:
|
||||
|
||||
// Notify device that we are going to send byte by releasing everything
|
||||
stx CIA2_PRA // cycles: 4
|
||||
|
||||
|
||||
// Send high nibble; cycles: 4 + 3 + 4 + 2 + 2 + 2 + 3 + 4 = 24
|
||||
pla // retrieve high nibble from stack
|
||||
ora C3PO // restore VIC-II and RS-232 bits
|
||||
@@ -96,7 +99,7 @@ iec_tx_byte_jiffydos_finalize:
|
||||
|
||||
iec_tx_byte_jiffydos_wait_eoi:
|
||||
|
||||
jsr iec_wait20us // XXX is it enough?
|
||||
jsr iec_wait60us // XXX is it enough?
|
||||
lda C3PO
|
||||
jmp iec_tx_byte_jiffydos_finalize
|
||||
|
||||
|
||||
Reference in new issue
Block a user