fix the bits we are setting and checking in IEC turn around to listen.
This commit is contained in:
1 parent
e5cdf77d50
commit
92ac67d6a7
1 file changed
+6
-4
@@ -4,14 +4,16 @@
|
|||||||
iec_turnaround_to_listen:
|
iec_turnaround_to_listen:
|
||||||
;; Assert data and release clock
|
;; Assert data and release clock
|
||||||
lda $dd00
|
lda $dd00
|
||||||
and #$ef
|
sta $0420
|
||||||
ora #$08
|
and #$ef ; release clock (bit 4)
|
||||||
|
ora #$20 ; assert data (bit 5)
|
||||||
sta $dd00
|
sta $dd00
|
||||||
|
|
||||||
;; Wait for clock line to be asserted by the drive
|
;; Wait for clock line to be asserted by the drive
|
||||||
* lda $dd00
|
* lda $dd00
|
||||||
and #$10
|
sta $0421
|
||||||
beq -
|
and #$80
|
||||||
|
bne -
|
||||||
|
|
||||||
rts
|
rts
|
||||||
|
|
||||||
Reference in new issue
Block a user