mirror of
https://github.com/a2-4am/4cade.git
synced 2025-01-19 17:31:07 +00:00
update visible game count
This commit is contained in:
parent
b0c585dc13
commit
94f9499ea0
@ -25,6 +25,7 @@ SearchMode
|
|||||||
lda #0
|
lda #0
|
||||||
sta OffscreenPage
|
sta OffscreenPage
|
||||||
sta InputLength
|
sta InputLength
|
||||||
|
jsr _UpdateGameCount
|
||||||
|
|
||||||
jsr OnInputChanged ; draw default UI on HGR page 1
|
jsr OnInputChanged ; draw default UI on HGR page 1
|
||||||
bit $C052
|
bit $C052
|
||||||
@ -213,10 +214,15 @@ OnInputChanged
|
|||||||
inc SAVE
|
inc SAVE
|
||||||
- iny
|
- iny
|
||||||
cpy SAVE
|
cpy SAVE
|
||||||
bcc +
|
bcc @printTitleChar
|
||||||
|
beq @printCursor
|
||||||
lda #" "
|
lda #" "
|
||||||
+HIDE_NEXT_2_BYTES
|
+HIDE_NEXT_2_BYTES
|
||||||
+ lda (SRC),y ; copy game title to search UI
|
@printCursor
|
||||||
|
lda #$7F
|
||||||
|
+HIDE_NEXT_2_BYTES
|
||||||
|
@printTitleChar
|
||||||
|
lda (SRC),y ; copy game title to search UI
|
||||||
sta UILine2,y
|
sta UILine2,y
|
||||||
cpy #MaxInputLength+1
|
cpy #MaxInputLength+1
|
||||||
bcc -
|
bcc -
|
||||||
@ -266,6 +272,41 @@ _ShowOtherPage
|
|||||||
+ bit $C054 ; show page 1
|
+ bit $C054 ; show page 1
|
||||||
rts
|
rts
|
||||||
|
|
||||||
|
_UpdateGameCount
|
||||||
|
jsr okvs_len
|
||||||
|
!word gGamesListStore
|
||||||
|
sta SAVE
|
||||||
|
ldy #0
|
||||||
|
@outer
|
||||||
|
lda #0
|
||||||
|
pha
|
||||||
|
@inner
|
||||||
|
lda SAVE
|
||||||
|
cmp @powersOfTen,y
|
||||||
|
bcc @digitDone
|
||||||
|
sbc @powersOfTen,y
|
||||||
|
sta SAVE
|
||||||
|
lda SAVE+1
|
||||||
|
sbc #0
|
||||||
|
sta SAVE+1
|
||||||
|
pla
|
||||||
|
adc #0
|
||||||
|
pha
|
||||||
|
jmp @inner
|
||||||
|
@digitDone
|
||||||
|
pla
|
||||||
|
ora #$30
|
||||||
|
sta UILine2_GameCount,y
|
||||||
|
iny
|
||||||
|
cpy #$03
|
||||||
|
bcc @outer
|
||||||
|
rts
|
||||||
|
|
||||||
|
@powersOfTen
|
||||||
|
!byte 100
|
||||||
|
!byte 10
|
||||||
|
!byte 1
|
||||||
|
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
|
|
||||||
Cover !byte 5
|
Cover !byte 5
|
||||||
@ -281,7 +322,9 @@ UILine2
|
|||||||
!text "["
|
!text "["
|
||||||
!byte $7F
|
!byte $7F
|
||||||
!text " "
|
!text " "
|
||||||
!text "] 000 games"
|
!text "] "
|
||||||
|
UILine2_GameCount
|
||||||
|
!text "000 games"
|
||||||
|
|
||||||
OffscreenPage
|
OffscreenPage
|
||||||
!byte 1 ; 0 = currently showing HGR page 2
|
!byte 1 ; 0 = currently showing HGR page 2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user