calculate more game display names

This commit is contained in:
4am 2020-03-18 13:31:40 -04:00
parent d484e98073
commit 2a292259a9
3 changed files with 12 additions and 5 deletions

File diff suppressed because one or more lines are too long

View File

@ -6,10 +6,10 @@
; YE OLDE GRAND UNIFIED MEMORY MAP ; YE OLDE GRAND UNIFIED MEMORY MAP
; ;
; LC RAM BANK 1 ; LC RAM BANK 1
; D000..E694 - persistent data structures (per-game cheat categories, ; D000..E27D - persistent data structures (per-game cheat categories,
; gGlobalPrefsStore, gGamesListStore) ; gGlobalPrefsStore, gGamesListStore)
; ...unused... ; ...unused...
; EAB9..FFF9 - main program code ; EAAC..FFF9 - main program code
; FFFA..FFFF - NMI, reset, IRQ vectors ; FFFA..FFFF - NMI, reset, IRQ vectors
; ;
; LC RAM BANK 2 ; LC RAM BANK 2

View File

@ -106,12 +106,19 @@ GetGameDisplayName
sty @len sty @len
sty gValLen sty gValLen
lda #$24 ; BIT opcode lda #$24 ; BIT opcode
sta @or sta @or ; first character remains capitalized
ldy #1 ldy #1
- lda (SAVE), y - lda (SAVE), y
cmp #$2E
bne @or
lda #$20 ; convert '.' to ' '
@or ora #$20 ; SMC (opcode) @or ora #$20 ; SMC (opcode)
sta gValLen, y sta gValLen, y
lda #$09 ; OR opcode cmp #$20
bne +
lda #$24 ; first character after ' ' remains capitalized
+HIDE_NEXT_2_BYTES
+ lda #$09 ; OR opcode
sta @or sta @or
@next iny @next iny
@len=*+1 @len=*+1