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