Add ROM version to unused hw vector and before filename in SRAM

Two 16 bit ints located at $FFE0 (0x7FE0 PC) in ROM and burned into SRAM
starting at $701FFC, just before the ROM name
This commit is contained in:
cassidy
2021-12-07 15:29:30 -05:00
parent 2fe5f0c126
commit 5fc5dc13b2
2 changed files with 17 additions and 1 deletions

View File

@@ -1,3 +1,5 @@
RomVersionSRAM = $701FFC
;--------------------------------------------------------------------------------
; Init_Primary
;--------------------------------------------------------------------------------
@@ -39,6 +41,11 @@ Init_Primary:
LDA $00FFC0, X : STA $702000, X
INX
CPX #$15 : !BLT -
LDX #$00
-
LDA RomVersion, X : STA RomVersionSRAM, X
INX
CPX #$04 : !BLT -
.done
REP #$20
@@ -63,4 +70,4 @@ Init_PostRAMClear:
JSL MSUInit
JSL InitRNGPointerTable
JML $00D463 ; The original target of the jump table that we hijacked
JML $00D463 ; The original target of the jump table that we hijacked