mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
Ensure that the cartridge header is patched over all $00s, and comment on the entry point format
This commit is contained in:
parent
10909e6b43
commit
a40ddc4668
@ -56,14 +56,15 @@ SECTION "joypad", ROM0[$0060]
|
|||||||
jp Joypad
|
jp Joypad
|
||||||
|
|
||||||
|
|
||||||
; Game Boy cartridge header
|
|
||||||
|
|
||||||
SECTION "Header", ROM0[$0100]
|
SECTION "Header", ROM0[$0100]
|
||||||
|
|
||||||
Start::
|
Start::
|
||||||
|
; Nintendo requires all Game Boy ROMs to begin with a nop ($00) and a jp ($C3)
|
||||||
|
; to the starting address.
|
||||||
nop
|
nop
|
||||||
jp _Start
|
jp _Start
|
||||||
|
|
||||||
; The cartridge header data is filled in by rgbfix.
|
; The Game Boy cartridge header data is patched over by rgbfix.
|
||||||
; This makes sure it doesn't get used.
|
; This makes sure it doesn't get used for anything else.
|
||||||
ds $0150 - @
|
|
||||||
|
ds $0150 - @, $00
|
||||||
|
Loading…
Reference in New Issue
Block a user