Skip to content

Commit

Permalink
Show current video mode in system information
Browse files Browse the repository at this point in the history
  • Loading branch information
mrehkopf committed Nov 21, 2018
1 parent 531d02a commit 991fcec
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion snes/const.a65
Expand Up @@ -259,7 +259,7 @@ text_statusbar_keys .byt "A:Select B:Back X:Menu", 0
text_statusbar_spc .byt "B:Back", 0
text_statusbar_menu .byt "A:Select B:Back", 0
text_last .byt "Recent games", 0
text_system .byt "CPU Rev.: x PPU1 Rev.: y PPU2 Rev.: z",0
text_system .byt "CPU/PPU1/PPU2: a/b/c VMode: x0Hz",0

text_on .byt "On", 0
text_off .byt "Off", 0
Expand Down
15 changes: 12 additions & 3 deletions snes/sysinfo.a65
Expand Up @@ -76,27 +76,36 @@ sysinfo_printloop:
dec
bne -

ldx #24
ldx #17
lda $213e
and #$0f
clc
adc #$30
sta @snes_system_config,x

ldx #38
ldx #19
lda $213f
and #$0f
clc
adc #$30
sta @snes_system_config,x

ldx #10
ldx #15
lda $4210
and #$0f
clc
adc #$30
sta @snes_system_config,x

ldx #35
lda $213f
eor #$10
and #$10
adc #$f0
lda #$35
adc #$00
sta @snes_system_config, x

lda #^snes_system_config ; System text
ldx #!snes_system_config
sta print_bank
Expand Down

0 comments on commit 991fcec

Please sign in to comment.