sb: update graphics
This commit is contained in:
parent
2de3dbffc5
commit
29f92a2df4
|
@ -83,6 +83,9 @@ score_inc_d1:
|
|||
cld ; back from decimal mode
|
||||
|
||||
update_d1_score:
|
||||
|
||||
; update ones digit
|
||||
|
||||
lda D1_SCORE
|
||||
and #$f
|
||||
tay
|
||||
|
@ -91,6 +94,24 @@ update_d1_score:
|
|||
lda number_sprites_h,Y
|
||||
sta score1_h+4
|
||||
|
||||
; check if leading zero
|
||||
|
||||
lda D1_SCORE_H
|
||||
and #$f
|
||||
bne d1_score_no_lead_zero
|
||||
|
||||
lda D1_SCORE
|
||||
and #$f0
|
||||
bne d1_score_no_lead_zero
|
||||
|
||||
lda #<space_sprite
|
||||
sta score1_l+3
|
||||
lda #>space_sprite
|
||||
sta score1_h+3
|
||||
jmp done_d1_score
|
||||
|
||||
d1_score_no_lead_zero:
|
||||
|
||||
lda D1_SCORE
|
||||
lsr
|
||||
lsr
|
||||
|
@ -102,6 +123,9 @@ update_d1_score:
|
|||
lda number_sprites_h,Y
|
||||
sta score1_h+3
|
||||
|
||||
done_d1_score:
|
||||
|
||||
|
||||
rts
|
||||
|
||||
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 813 B |
Binary file not shown.
After Width: | Height: | Size: 795 B |
Binary file not shown.
After Width: | Height: | Size: 756 B |
Loading…
Reference in New Issue