Permalink
Browse files

Show current video mode in system information

  • Loading branch information...
mrehkopf committed Nov 21, 2018
1 parent 531d02a commit 991fcec2c961dac4c26e2a2e44ed3d36a0bb69d9
Showing with 13 additions and 4 deletions.
  1. +1 −1 snes/const.a65
  2. +12 −3 snes/sysinfo.a65
@@ -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
@@ -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

0 comments on commit 991fcec

Please sign in to comment.