1
0
mirror of https://github.com/cc65/cc65.git synced 2025-01-17 05:31:45 +00:00

Change polarity for 2600 buttons

This commit is contained in:
Karri Kaksonen 2022-03-31 11:04:10 +03:00
parent e4193451d4
commit 26ab64f207

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