mirror of
https://github.com/robmcmullen/fujirun.git
synced 2024-10-21 00:24:26 +00:00
Fixed clobbering of X in userinput
This commit is contained in:
parent
0afa3a6b64
commit
f7924f12bd
@ -288,6 +288,7 @@ userinput
|
|||||||
ldx #38
|
ldx #38
|
||||||
ldy #23
|
ldy #23
|
||||||
jsr printhex
|
jsr printhex
|
||||||
|
ldx #0
|
||||||
pla
|
pla
|
||||||
bpl input_not_movement ; stop movement of player if no direction input
|
bpl input_not_movement ; stop movement of player if no direction input
|
||||||
|
|
||||||
@ -295,7 +296,6 @@ userinput
|
|||||||
; down, which causes a pause after the initial movement. Not setting the
|
; down, which causes a pause after the initial movement. Not setting the
|
||||||
; strobe allows smooth movement from the start, but there's no way to stop
|
; strobe allows smooth movement from the start, but there's no way to stop
|
||||||
;sta KBDSTROBE
|
;sta KBDSTROBE
|
||||||
ldx #0
|
|
||||||
|
|
||||||
check_up cmp #$8d ; up arrow
|
check_up cmp #$8d ; up arrow
|
||||||
beq input_up
|
beq input_up
|
||||||
|
Loading…
Reference in New Issue
Block a user