From 56f6dbfd3d226aea73101b0fac435e88f0fd53a7 Mon Sep 17 00:00:00 2001 From: FeralChild64 Date: Thu, 20 Jun 2019 17:40:06 +0200 Subject: [PATCH] fix for wrong bits sent in iec_tx_common --- c64/kernal/iec_tx_common.s | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/c64/kernal/iec_tx_common.s b/c64/kernal/iec_tx_common.s index 17a9fcf4..7d75892b 100644 --- a/c64/kernal/iec_tx_common.s +++ b/c64/kernal/iec_tx_common.s @@ -40,9 +40,9 @@ iec_tx_common_bit_is_sent: jsr iec_wait20us ;; More bits to send? - pla dex bpl iec_tx_common_nextbit + pla ;; Whole byte send, make sure ATN is released jsr iec_release_atn_clk_data @@ -77,4 +77,5 @@ iec_tx_common_nextbit: jsr iec_pull_clk_release_data jsr iec_wait20us + pla jmp iec_tx_common_sendbit