summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2020-04-06 13:35:38 -0400
committerRangi <remy.oukaour+rangi42@gmail.com>2020-04-06 14:44:07 -0400
commita40ddc4668622c9068c3bf832e804ca7c9b6b4d7 (patch)
treea357c448855286ae65eec1f1a0f8c27a70779761
parent10909e6b437f6c137c794337e94f32cdc7fe9eb4 (diff)
Ensure that the cartridge header is patched over all $00s, and comment on the entry point format
-rw-r--r--home/header.asm11
1 files changed, 6 insertions, 5 deletions
diff --git a/home/header.asm b/home/header.asm
index 40041e75d..2e8c58949 100644
--- a/home/header.asm
+++ b/home/header.asm
@@ -56,14 +56,15 @@ SECTION "joypad", ROM0[$0060]
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