From ea070f9bfe7efe3b2a653c519296801c2b924731 Mon Sep 17 00:00:00 2001 From: Paul Gardner-Stephen Date: Sat, 4 May 2019 22:20:57 +0930 Subject: [PATCH] ... and actually read the DATA bit when recording data in iec_rx_byte --- c64/kernal/iec_rx_byte.s | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/c64/kernal/iec_rx_byte.s b/c64/kernal/iec_rx_byte.s index a0d557b8..c0db92dc 100644 --- a/c64/kernal/iec_rx_byte.s +++ b/c64/kernal/iec_rx_byte.s @@ -66,14 +66,13 @@ iec_rx_bit_loop: inc $0635 ;; DATA now has the next bit, but inverted. - ;; DATA is in bit6, which is a bit annoying. - ;; But we can clock it out with two ROL instructions + ;; DATA is in bit7, which is a bit annoying. + ;; But we can clock it out with a ROL instruction ;; so that it is in C. We can then ROL it into the ;; partial data byte ;; Move data bit into C flag LDA $DD00 ROL - ROL ;; Pull it into the data byte pla ROL