menu: show CPU/PPU revisions in system information (necronomfive)

This commit is contained in:
Maximilian Rehkopf 2012-06-09 21:47:40 +02:00
parent f9c8e62f10
commit 798e23ec82
3 changed files with 48 additions and 2 deletions

View File

@ -168,7 +168,7 @@ text_mm_vmode_game .byt "Game video mode", 0
text_mm_sysinfo .byt "System Information", 0
text_statusbar_keys .byt "A:Select B:Back X:Menu", 0
text_last .byt "Run previous ROM: Press Start again to confirm", 0
text_system .byt "PPU1 Rev.: x PPU2 Rev.: y CPU Rev.: z",0
text_system .byt "CPU Rev.: x PPU1 Rev.: y PPU2 Rev.: z",0
text_spcplay .byt "SPC Music Player", 0

View File

@ -189,4 +189,7 @@ saved_sp
.word 0
warm_signature
.word 0
snes_system_config
.word 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
wram_fadeloop .byt 0

View File

@ -35,6 +35,14 @@ show_sysinfo:
sta window_h
jsr draw_window
stz print_pal
ldx #38
copy_snes_system_text:
lda @text_system,x
sta @snes_system_config,x
dex
bpl copy_snes_system_text
sysinfo_printloop:
sep #$20 : .as
rep #$10 : .xl
@ -51,7 +59,7 @@ sysinfo_printloop:
sta print_x
lda #40
sta print_count
lda #13
lda #12
- pha
jsr hiprint
inc print_y
@ -64,6 +72,41 @@ sysinfo_printloop:
pla
dec
bne -
ldx #24
lda $213e
and #$0f
clc
adc #$30
sta @snes_system_config,x
ldx #38
lda $213f
and #$0f
clc
adc #$30
sta @snes_system_config,x
ldx #10
lda $4210
and #$0f
clc
adc #$30
sta @snes_system_config,x
lda #^snes_system_config ; System text
ldx #!snes_system_config
sta print_bank
stx print_src
stz print_pal
lda #39
sta print_count
lda #23
sta print_y
lda #12
sta print_x
jsr hiprint
- lda isr_done
lsr
bcc -