mist: can walk forward

This commit is contained in:
Vince Weaver 2020-03-01 15:24:28 -05:00
parent 8a81509259
commit ca9c087736
1 changed files with 13 additions and 0 deletions

View File

@ -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
;==========================