mirror of
https://github.com/deater/dos33fsprogs.git
synced 2025-02-14 21:30:41 +00:00
mist: can beat the game!
This commit is contained in:
parent
747add046c
commit
aaba27a5f6
@ -32,24 +32,58 @@ in_fireplace:
|
|||||||
|
|
||||||
; it's the button
|
; it's the button
|
||||||
|
|
||||||
; lda animate_direction
|
; check if pattern is right
|
||||||
; bpl animate_back
|
; it not, open door
|
||||||
|
; if so, animate there
|
||||||
|
|
||||||
|
lda FIREPLACE_GRID0
|
||||||
|
cmp #$c0
|
||||||
|
bne wrong_combination
|
||||||
|
lda FIREPLACE_GRID1
|
||||||
|
cmp #$68
|
||||||
|
bne wrong_combination
|
||||||
|
lda FIREPLACE_GRID2
|
||||||
|
cmp #$a0
|
||||||
|
bne wrong_combination
|
||||||
|
lda FIREPLACE_GRID3
|
||||||
|
cmp #$90
|
||||||
|
bne wrong_combination
|
||||||
|
lda FIREPLACE_GRID4
|
||||||
|
cmp #$cc
|
||||||
|
bne wrong_combination
|
||||||
|
lda FIREPLACE_GRID5
|
||||||
|
cmp #$f8
|
||||||
|
bne wrong_combination
|
||||||
|
|
||||||
animate_there:
|
animate_there:
|
||||||
lda #1
|
lda #1
|
||||||
sta ANIMATE_FRAME
|
sta ANIMATE_FRAME
|
||||||
sta animate_direction
|
sta animate_direction
|
||||||
; bne done_in_fireplace
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
done_in_fireplace:
|
|
||||||
|
|
||||||
lda #0 ; reset frame count
|
lda #0 ; reset frame count
|
||||||
sta FRAMEL
|
sta FRAMEL
|
||||||
|
|
||||||
|
done_in_fireplace:
|
||||||
rts
|
rts
|
||||||
|
|
||||||
|
clear_fireplace:
|
||||||
|
|
||||||
|
; clear it out
|
||||||
|
lda #$0
|
||||||
|
sta FIREPLACE_GRID0
|
||||||
|
sta FIREPLACE_GRID1
|
||||||
|
sta FIREPLACE_GRID2
|
||||||
|
sta FIREPLACE_GRID3
|
||||||
|
sta FIREPLACE_GRID4
|
||||||
|
sta FIREPLACE_GRID5
|
||||||
|
|
||||||
|
rts
|
||||||
|
|
||||||
|
wrong_combination:
|
||||||
|
|
||||||
|
jsr clear_fireplace
|
||||||
|
jmp exit_fireplace
|
||||||
|
|
||||||
|
|
||||||
animate_direction:
|
animate_direction:
|
||||||
.byte $ff
|
.byte $ff
|
||||||
|
|
||||||
@ -111,6 +145,8 @@ at_shelf:
|
|||||||
lda #DIRECTION_E
|
lda #DIRECTION_E
|
||||||
sta DIRECTION
|
sta DIRECTION
|
||||||
|
|
||||||
|
jsr clear_fireplace
|
||||||
|
|
||||||
jmp change_location
|
jmp change_location
|
||||||
|
|
||||||
;============================
|
;============================
|
||||||
|
Loading…
x
Reference in New Issue
Block a user