lemm: update number out

This commit is contained in:
Vince Weaver 2022-03-10 23:43:10 -05:00
parent a7b6c84b93
commit 235c676020
3 changed files with 32 additions and 0 deletions

View File

@ -283,6 +283,10 @@ zurg:
sta FRAMEL
sta LOAD_NEXT_CHUNK
sta JOYSTICK_ENABLED
sta LEMMINGS_OUT
jsr update_lemmings_out
lda #1
sta LEMMINGS_TO_RELEASE
@ -337,6 +341,9 @@ door_is_open:
and #$f
bne done_release_lemmings
inc LEMMINGS_OUT
jsr update_lemmings_out
lda #1
sta lemming_out

View File

@ -87,6 +87,30 @@ draw_time:
rts
; update lemmings out number
update_lemmings_out:
; draw minute
ldy LEMMINGS_OUT
lda bignums_l,Y
sta INL
lda bignums_h,Y
sta INH
; 246, 152
ldx #15 ; 105
stx XPOS
lda #152
sta YPOS
jsr hgr_draw_sprite_autoshift
rts
bignums_l:
.byte <big0_sprite,<big1_sprite,<big2_sprite,<big3_sprite,<big4_sprite
.byte <big5_sprite,<big6_sprite,<big7_sprite,<big8_sprite,<big9_sprite

View File

@ -65,6 +65,7 @@ UPDATE_POINTER = $82
LEMMINGS_TO_RELEASE = $83
SAVED_Y1 = $84
SAVED_Y2 = $85
LEMMINGS_OUT = $86
APPLEII_MODEL = $8B