... and actually read the DATA bit when recording data in iec_rx_byte

This commit is contained in:
Paul Gardner-Stephen committed 2019-05-04 22:20:57 +09:30
1 parent c80ff23599
commit ea070f9bfe
1 file changed
+2 -3
+2 -3
View File
@@ -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