1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-27 00:29:31 +00:00

Change polarity for 2600 buttons

This commit is contained in:
Karri Kaksonen 2022-03-31 11:04:10 +03:00 committed by mrdudz
parent 851c65344c
commit f92e1f2e3c

View File

@ -110,7 +110,7 @@ L2: tya
bne L4 ; 7800 mode joystick worked
; 2600 Joystick 1
bit INPT5
bpl L4
bmi L4
L3: iny ; .......1
lda #0 ; Fallback to 2600 joystick mode
sta CTLSWB
@ -130,8 +130,8 @@ L7: tya
bne L4 ; 7800 mode joystick worked
; 2600 Joystick 0
bit INPT4
bpl L4
bmi L3
bmi L4
bpl L3
READ:
tay ; Store joystick 0/1 in Y