summaryrefslogtreecommitdiff
path: root/asm
diff options
context:
space:
mode:
authoryenatch <yenatch@gmail.com>2017-07-17 19:52:52 -0400
committerGitHub <noreply@github.com>2017-07-17 19:52:52 -0400
commitcc3da4cdc00eb0c1ed36f50780b00c0d843884a1 (patch)
treeded87aae0570892c2718b0969957249b68736637 /asm
parentd5c9a02e514d8bd75cbe192d6465ab4bb5af43ad (diff)
parentc6e9dd8a2a56e13cf93ca3b7ad0dae73918771df (diff)
Merge pull request #358 from marijnvdwerf/sapphire
Build German Sapphire (1.0)
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