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:
@@ -27,6 +27,15 @@ db #$00 ; expand file to 2mb
|
||||
org $1FFFF8 ; <- FFFF8 timestamp rom
|
||||
db #$20, #$19, #$08, #$31 ; year/month/day
|
||||
|
||||
;================================================================================
|
||||
!ROM_VERSION_LOW = 1 ; ROM version (two 16-bit integers)
|
||||
!ROM_VERSION_HIGH = 1 ;
|
||||
|
||||
org $00FFE0 ; Unused hardware vector
|
||||
RomVersion:
|
||||
dw !ROM_VERSION_LOW
|
||||
dw !ROM_VERSION_HIGH
|
||||
|
||||
;================================================================================
|
||||
|
||||
!ADD = "CLC : ADC"
|
||||
|
||||
Reference in New Issue
Block a user