commented-out some dead code, improved ATN handling

This commit is contained in:
FeralChild64 committed 2019-12-02 18:10:31 +01:00
1 parent 76b39abd8e
commit 24a8e52ad3
2 files changed
+17 -12

No files matched your search

+12 -10
View File
@@ -63,17 +63,19 @@ kernalstatus_reset:
sta IOSTATUS sta IOSTATUS
rts rts
kernalstatus_TIMEOUT_WRITE: // XXX detect this! // The following two statuses are currentl not implemented - and most likely not really needed
lda IOSTATUS
ora #K_STS_TIMEOUT_WRITE
sta IOSTATUS
rts
kernalstatus_TIMEOUT_READ: // XXX detect this! // kernalstatus_TIMEOUT_WRITE:
lda IOSTATUS // lda IOSTATUS
ora #K_STS_TIMEOUT_READ // ora #K_STS_TIMEOUT_WRITE
sta IOSTATUS // sta IOSTATUS
rts // rts
// kernalstatus_TIMEOUT_READ:
// lda IOSTATUS
// ora #K_STS_TIMEOUT_READ
// sta IOSTATUS
// rts
kernalstatus_EOI: kernalstatus_EOI:
lda IOSTATUS lda IOSTATUS
+5 -2
View File
@@ -20,6 +20,9 @@ iec_tx_byte_jiffydos:
phx_trash_a phx_trash_a
phy_trash_a phy_trash_a
// Make sure we are not sending data on ATN
jsr iec_release_atn
// Store previous sprite status on stack // Store previous sprite status on stack
jsr jiffydos_prepare jsr jiffydos_prepare
pha pha
@@ -45,7 +48,7 @@ iec_tx_byte_jiffydos:
// Notify device that we are going to send byte by releasing everything // Notify device that we are going to send byte by releasing everything
stx CIA2_PRA // cycles: 4 stx CIA2_PRA // cycles: 4
// Send high nibble; cycles: 4 + 3 + 4 + 2 + 2 + 2 + 3 + 4 = 24 // Send high nibble; cycles: 4 + 3 + 4 + 2 + 2 + 2 + 3 + 4 = 24
pla // retrieve high nibble from stack pla // retrieve high nibble from stack
ora C3PO // restore VIC-II and RS-232 bits ora C3PO // restore VIC-II and RS-232 bits
@@ -96,7 +99,7 @@ iec_tx_byte_jiffydos_finalize:
iec_tx_byte_jiffydos_wait_eoi: iec_tx_byte_jiffydos_wait_eoi:
jsr iec_wait20us // XXX is it enough? jsr iec_wait60us // XXX is it enough?
lda C3PO lda C3PO
jmp iec_tx_byte_jiffydos_finalize jmp iec_tx_byte_jiffydos_finalize