mirror of
https://github.com/a2-4am/4cade.git
synced 2024-11-23 12:33:32 +00:00
calculate more game display names
This commit is contained in:
parent
d484e98073
commit
2a292259a9
File diff suppressed because one or more lines are too long
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user