From 339ae0335fdc7ebb1c11da588c60c52858ec3dc2 Mon Sep 17 00:00:00 2001 From: FeralChild64 Date: Thu, 20 Jun 2019 17:59:29 +0200 Subject: [PATCH] fixed timing in iec_tx_common --- c64/kernal/iec_tx_common.s | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/c64/kernal/iec_tx_common.s b/c64/kernal/iec_tx_common.s index 7d75892b..ca5fb247 100644 --- a/c64/kernal/iec_tx_common.s +++ b/c64/kernal/iec_tx_common.s @@ -38,6 +38,11 @@ iec_tx_common_bit_is_sent: ;; Wait 20us, so that device(s) can pick DATA jsr iec_wait20us + + ;; Pull CLK for 20us again, before sending the next bit + ;; or performing any other action + jsr iec_pull_clk_release_data + jsr iec_wait20us ;; More bits to send? dex @@ -73,9 +78,5 @@ iec_tx_common_done: iec_tx_common_nextbit: - ;; Pull CLK for 20us again, before - jsr iec_pull_clk_release_data - jsr iec_wait20us - pla jmp iec_tx_common_sendbit