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
;
; LC RAM BANK 1
; D000..E694 - persistent data structures (per-game cheat categories,
; D000..E27D - persistent data structures (per-game cheat categories,
; gGlobalPrefsStore, gGamesListStore)
; ...unused...
; EAB9..FFF9 - main program code
; EAAC..FFF9 - main program code
; FFFA..FFFF - NMI, reset, IRQ vectors
;
; LC RAM BANK 2

View File

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