From 3e0c6e3c1ef18a956ae931bd9fa62a051ec92257 Mon Sep 17 00:00:00 2001 From: Paul Gardner-Stephen Date: Sat, 4 May 2019 12:02:25 +0930 Subject: [PATCH] try to fix ATN turn around to listen --- c64/kernal/iec_turnaround_to_listen.s | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/c64/kernal/iec_turnaround_to_listen.s b/c64/kernal/iec_turnaround_to_listen.s index b863dcf3..e3af7fd7 100644 --- a/c64/kernal/iec_turnaround_to_listen.s +++ b/c64/kernal/iec_turnaround_to_listen.s @@ -9,6 +9,12 @@ iec_turnaround_to_listen: ora #$20 ; assert data (bit 5) sta $dd00 + ;; Make sure we actually see CLK release? + ;; This could cause the CLK assertion by the talker to be missed, + ;; so shouldn't probably be done. But it is an attempt to debug + ;; why we never see CLK release after the turn-around. + jsr iec_wait_for_clock_release + ;; Wait for clock line to be asserted by the drive * lda $dd00 sta $0421