shithub: pokecrystal

Download patch

ref: d076dc25e05b68eb36e9930eba52e74be2c012ba
parent: 10909e6b437f6c137c794337e94f32cdc7fe9eb4
parent: a40ddc4668622c9068c3bf832e804ca7c9b6b4d7
author: mid-kid <[email protected]>
date: Mon Apr 6 16:45:28 EDT 2020

Merge pull request #707 from Rangi42/master

Update the header structure

--- a/home/header.asm
+++ b/home/header.asm
@@ -56,14 +56,15 @@
 	jp Joypad
 
 
-; Game Boy cartridge header
-
 SECTION "Header", ROM0[$0100]
 
 Start::
+; Nintendo requires all Game Boy ROMs to begin with a nop ($00) and a jp ($C3)
+; to the starting address.
 	nop
 	jp _Start
 
-; The cartridge header data is filled in by rgbfix.
-; This makes sure it doesn't get used.
-	ds $0150 - @
+; The Game Boy cartridge header data is patched over by rgbfix.
+; This makes sure it doesn't get used for anything else.
+
+	ds $0150 - @, $00