... and actually read the DATA bit when recording data in iec_rx_byte
This commit is contained in:
1 parent
c80ff23599
commit
ea070f9bfe
1 file changed
+2
-3
@@ -66,14 +66,13 @@ iec_rx_bit_loop:
|
|||||||
inc $0635
|
inc $0635
|
||||||
|
|
||||||
;; DATA now has the next bit, but inverted.
|
;; DATA now has the next bit, but inverted.
|
||||||
;; DATA is in bit6, which is a bit annoying.
|
;; DATA is in bit7, which is a bit annoying.
|
||||||
;; But we can clock it out with two ROL instructions
|
;; But we can clock it out with a ROL instruction
|
||||||
;; so that it is in C. We can then ROL it into the
|
;; so that it is in C. We can then ROL it into the
|
||||||
;; partial data byte
|
;; partial data byte
|
||||||
;; Move data bit into C flag
|
;; Move data bit into C flag
|
||||||
LDA $DD00
|
LDA $DD00
|
||||||
ROL
|
ROL
|
||||||
ROL
|
|
||||||
;; Pull it into the data byte
|
;; Pull it into the data byte
|
||||||
pla
|
pla
|
||||||
ROL
|
ROL
|
||||||
|
|||||||
Reference in new issue
Block a user