summaryrefslogtreecommitdiff
path: root/asm
diff options
context:
space:
mode:
Diffstat (limited to 'asm')
-rw-r--r--asm/crt0.s11
-rw-r--r--asm/rom_header.inc4
2 files changed, 13 insertions, 2 deletions
diff --git a/asm/crt0.s b/asm/crt0.s
index 121b11744..049392be9 100644
--- a/asm/crt0.s
+++ b/asm/crt0.s
@@ -1,4 +1,6 @@
.include "constants/gba_constants.inc"
+ .include "constants/misc_constants.inc"
+ .include "constants/version.inc"
.syntax unified
@@ -47,10 +49,15 @@ GPIOPortReadEnable: @ 80000C8
.4byte 0xFFFFFFFF
.4byte 0xFFFFFFFF
.4byte 0xFFFFFFFF
- .4byte 2
- .4byte 5
+ .4byte GAME_VERSION
+ .4byte GAME_LANGUAGE
+ .ifdef SAPPHIRE
+ .ascii "pokemon sapphire version"
+ .space 8
+ .else
.ascii "pokemon ruby version"
.space 12
+ .endif
.4byte gMonFrontPicTable
.4byte gMonBackPicTable
.4byte gMonPaletteTable
diff --git a/asm/rom_header.inc b/asm/rom_header.inc
index 43eec30bb..a852a9f23 100644
--- a/asm/rom_header.inc
+++ b/asm/rom_header.inc
@@ -66,8 +66,12 @@ RomHeaderChecksum:
.byte 0x41 - REVISION
.endif
.else
+ .ifdef SAPPHIRE
+ .byte 0x56
+ .else
.byte 0x42
.endif
+ .endif
RomHeaderReserved2:
.space 2