dos33fsprogs/games/lemm/draw_door.s

55 lines
603 B
ArmAsm
Raw Normal View History

2022-03-15 04:02:46 +00:00
;=================
; draw the door
;=================
2022-03-09 06:05:00 +00:00
draw_door:
lda FRAMEL
lsr
and #$3
tay
lda door_l,Y
sta INL
lda door_h,Y
sta INH
ldx #9 ; 63
2022-03-09 20:15:38 +00:00
stx XPOS
2022-03-09 06:05:00 +00:00
lda #36
2022-03-09 20:15:38 +00:00
sta YPOS
2022-03-09 06:05:00 +00:00
jsr hgr_draw_sprite
2022-03-15 04:02:46 +00:00
jsr hgr_sprite_page_toggle
ldx #9 ; 63
stx XPOS
lda #36
sta YPOS
jsr hgr_draw_sprite
jsr hgr_sprite_page_toggle
2022-03-09 06:05:00 +00:00
lda FRAMEL
cmp #7
bne not_door_done
inc DOOR_OPEN
cli ; start music
not_door_done:
rts
door_l:
.byte <door1_sprite,<door2_sprite,<door3_sprite,<door4_sprite
door_h:
.byte >door1_sprite,>door2_sprite,>door3_sprite,>door4_sprite