Fix bug
This commit is contained in:
parent
e8b1d51d28
commit
1d358a4734
1 changed files with 10 additions and 6 deletions
|
@ -91,18 +91,22 @@ COUNT:
|
||||||
|
|
||||||
READ:
|
READ:
|
||||||
beq right
|
beq right
|
||||||
lda #%10000000
|
|
||||||
ora VIA2::PRB
|
lda VIA2::PRB
|
||||||
|
and #%01111111
|
||||||
|
ora #%01000000
|
||||||
sta VIA2::PRB
|
sta VIA2::PRB
|
||||||
; then read
|
; then read
|
||||||
lda VIA2::PRB
|
lda VIA2::PRB
|
||||||
eor #%10011111
|
eor #%10011111
|
||||||
|
|
||||||
rts
|
rts
|
||||||
right:
|
right:
|
||||||
lda #%01000000
|
lda VIA2::PRB
|
||||||
ora VIA2::PRB
|
and #%10111111
|
||||||
sta VIA2::PRB
|
ora #%10000000
|
||||||
|
sta VIA2::PRB
|
||||||
|
|
||||||
; then read
|
; then read
|
||||||
lda VIA2::PRB
|
lda VIA2::PRB
|
||||||
eor #%01011111
|
eor #%01011111
|
||||||
|
|
Loading…
Add table
Reference in a new issue