1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-26 05:29:30 +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
; 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