mirror of
https://github.com/a2-4am/4cade.git
synced 2024-11-30 13:50:45 +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
|
; 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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user