summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--stadiumgs/main.s5
-rw-r--r--stadiumgs/rom.md51
-rw-r--r--stadiumgs/rom_header.s13
4 files changed, 19 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index 6c7acd6..2d621cc 100644
--- a/.gitignore
+++ b/.gitignore
@@ -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