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:
parent
e4193451d4
commit
26ab64f207
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user