diff options
author | Marijn van der Werf <marijn.vanderwerf@gmail.com> | 2017-07-08 21:19:28 +0200 |
---|---|---|
committer | Marijn van der Werf <marijn.vanderwerf@gmail.com> | 2017-07-09 13:54:21 +0200 |
commit | c6e9dd8a2a56e13cf93ca3b7ad0dae73918771df (patch) | |
tree | 680a49ecf53e3cd889c219a506c26563b438f809 /asm | |
parent | a0e590b739a2bdd8e76c004ae60662bd81d33ca9 (diff) |
Build German Sapphire (1.0)
Diffstat (limited to 'asm')
-rw-r--r-- | asm/crt0.s | 11 | ||||
-rw-r--r-- | asm/rom_header.inc | 4 |
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 |