nes: Fix reading the second controller
See http://wiki.nesdev.com/w/index.php/Controller_port_registers
This commit is contained in:
parent
a7793bcf65
commit
a954e713ad
1 changed files with 2 additions and 2 deletions
|
@ -95,9 +95,9 @@ READJOY:
|
|||
tay ; Joystick number (0,1) into Y
|
||||
|
||||
lda #1
|
||||
sta APU_PAD1,y
|
||||
sta APU_PAD1
|
||||
lda #0
|
||||
sta APU_PAD1,y
|
||||
sta APU_PAD1
|
||||
|
||||
; Read joystick
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue