From 2487d2d5939eb0dd86d556e0527d4eaa00cf4662 Mon Sep 17 00:00:00 2001 From: FeralChild64 Date: Thu, 5 Dec 2019 18:29:34 +0100 Subject: [PATCH] another fix for JiffyDOS EOI detection --- c64/kernal/iec/iec_rx_byte.s | 2 +- c64/kernal/iec_fast/iec_rx_byte_jiffydos.s | 12 +++++++++--- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/c64/kernal/iec/iec_rx_byte.s b/c64/kernal/iec/iec_rx_byte.s index ac6f807a..5297a4ae 100644 --- a/c64/kernal/iec/iec_rx_byte.s +++ b/c64/kernal/iec/iec_rx_byte.s @@ -124,7 +124,7 @@ iec_rx_clk_wait2: // the next byte. (p11). jsr iec_release_clk_pull_data - // Retreive the received byte + // Retrieve the received byte pla // Restore registers diff --git a/c64/kernal/iec_fast/iec_rx_byte_jiffydos.s b/c64/kernal/iec_fast/iec_rx_byte_jiffydos.s index f7c78ecb..976dfb25 100644 --- a/c64/kernal/iec_fast/iec_rx_byte_jiffydos.s +++ b/c64/kernal/iec_fast/iec_rx_byte_jiffydos.s @@ -80,10 +80,16 @@ iec_rx_byte_jiffydos: // Pull DATA at the end, cycles: 4 stx CIA2_PRA - // Check for EOI (DATA line) - bmi !+ + // If CLK line active - success + bvc iec_rx_byte_jiffydos_end + + // XXX does the DATA line status tell something? jsr kernalstatus_EOI -!: + + // FALLTROUGH + +iec_rx_byte_jiffydos_end: + // Indicate that no byte waits in output buffer lda #$00 sta C3PO