another fix for JiffyDOS EOI detection
This commit is contained in:
1 parent
11c389f7cc
commit
2487d2d593
2 files changed
+10
-4
No files matched your search
@@ -124,7 +124,7 @@ iec_rx_clk_wait2:
|
|||||||
// the next byte. (p11).
|
// the next byte. (p11).
|
||||||
jsr iec_release_clk_pull_data
|
jsr iec_release_clk_pull_data
|
||||||
|
|
||||||
// Retreive the received byte
|
// Retrieve the received byte
|
||||||
pla
|
pla
|
||||||
|
|
||||||
// Restore registers
|
// Restore registers
|
||||||
|
|||||||
@@ -80,10 +80,16 @@ iec_rx_byte_jiffydos:
|
|||||||
// Pull DATA at the end, cycles: 4
|
// Pull DATA at the end, cycles: 4
|
||||||
stx CIA2_PRA
|
stx CIA2_PRA
|
||||||
|
|
||||||
// Check for EOI (DATA line)
|
// If CLK line active - success
|
||||||
bmi !+
|
bvc iec_rx_byte_jiffydos_end
|
||||||
|
|
||||||
|
// XXX does the DATA line status tell something?
|
||||||
jsr kernalstatus_EOI
|
jsr kernalstatus_EOI
|
||||||
!:
|
|
||||||
|
// FALLTROUGH
|
||||||
|
|
||||||
|
iec_rx_byte_jiffydos_end:
|
||||||
|
|
||||||
// Indicate that no byte waits in output buffer
|
// Indicate that no byte waits in output buffer
|
||||||
lda #$00
|
lda #$00
|
||||||
sta C3PO
|
sta C3PO
|
||||||
|
|||||||
Reference in new issue
Block a user