diff options
author | YamaArashi <shadow962@live.com> | 2016-08-13 15:18:23 -0700 |
---|---|---|
committer | YamaArashi <shadow962@live.com> | 2016-08-13 15:18:23 -0700 |
commit | 14ceaa0b667498bb27ecb10c37d6e9c34c566449 (patch) | |
tree | de62f608055121970b2bb6dc3935f0d4d85a3260 | |
parent | e136c25df53c0f58b0e838ffa2c69fa4802f438f (diff) |
ROM header
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | stadiumgs/main.s | 5 | ||||
-rw-r--r-- | stadiumgs/rom.md5 | 1 | ||||
-rw-r--r-- | stadiumgs/rom_header.s | 13 |
4 files changed, 19 insertions, 1 deletions
@@ -1 +1,2 @@ *.n64 +*.exe diff --git a/stadiumgs/main.s b/stadiumgs/main.s index 40f5bd6..c29e861 100644 --- a/stadiumgs/main.s +++ b/stadiumgs/main.s @@ -5,7 +5,10 @@ .include "constants/move_constants.s" .include "constants/item_constants.s" .include "constants/decoration_constants.s" -.incbin "baseromgs.n64",0,0x97f54 + +.include "rom_header.s" + +.incbin "baseromgs.n64",0x40,0x97f14 CarrierCartridgeString: .ascii "PokeMonStadium3CarrierCartridge",0 diff --git a/stadiumgs/rom.md5 b/stadiumgs/rom.md5 new file mode 100644 index 0000000..b3bafdc --- /dev/null +++ b/stadiumgs/rom.md5 @@ -0,0 +1 @@ +1561c75d11cedf356a8ddb1a4a5f9d5d pokestadiumgs.n64 diff --git a/stadiumgs/rom_header.s b/stadiumgs/rom_header.s new file mode 100644 index 0000000..ee95896 --- /dev/null +++ b/stadiumgs/rom_header.s @@ -0,0 +1,13 @@ + .dw 0x80371240 ; initial PI_BSD_DOM1 register values + .dw 0xF ; clock rate (default) + .dw 0x80100400 ; entry point + .dw 0x144C ; release + .dw 0x03571182 ; checksum 1 + .dw 0x892FD06D ; checksum 2 + .fill 8 ; unknown + .ascii "POKEMON STADIUM 2 " ; game name + .fill 4 ; unknown + .dw "N" ; format (cartridge) + .ascii "P3" ; game ID + .ascii "E" ; region (North America) + .db 0x00 ; version |