mirror of
https://github.com/robmcmullen/fujirun.git
synced 2025-08-15 00:27:48 +00:00
Fixed clobbering of X in userinput
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user