mirror of
https://github.com/deater/dos33fsprogs.git
synced 2025-01-12 00:30:31 +00:00
mist: can walk forward
This commit is contained in:
parent
8a81509259
commit
ca9c087736
13
mist/mist.s
13
mist/mist.s
@ -450,6 +450,19 @@ change_location:
|
||||
; go forward
|
||||
;===========================
|
||||
go_forward:
|
||||
|
||||
lda DIRECTION
|
||||
clc
|
||||
adc #LOCATION_NORTH_EXIT
|
||||
tay
|
||||
lda (LOCATION_STRUCT_L),Y
|
||||
|
||||
cmp #$ff
|
||||
beq cant_go_forward
|
||||
|
||||
sta LOCATION
|
||||
jsr change_location
|
||||
cant_go_forward:
|
||||
rts
|
||||
|
||||
;==========================
|
||||
|
Loading…
x
Reference in New Issue
Block a user