summaryrefslogtreecommitdiff
path: root/asm/crt0.s
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/crt0.s
parentd5c9a02e514d8bd75cbe192d6465ab4bb5af43ad (diff)
parentc6e9dd8a2a56e13cf93ca3b7ad0dae73918771df (diff)
Merge pull request #358 from marijnvdwerf/sapphire
Build German Sapphire (1.0)
Diffstat (limited to 'asm/crt0.s')
-rw-r--r--asm/crt0.s11
1 files changed, 9 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