summaryrefslogtreecommitdiff
path: root/home
diff options
context:
space:
mode:
authorentrpntr <entrpntr@gmail.com>2020-04-06 14:28:33 -0400
committerentrpntr <entrpntr@gmail.com>2020-04-06 14:48:14 -0400
commit07a5cc60d0c3e37699ad5e45366cb9b093d6b7e7 (patch)
treed24dd2f6ac9f79f3247415d136b290a17766df3a /home
parentd46fcef6bc2c8054f873d238e020d43b6f1774f2 (diff)
Add unnamed.py and update for rgbds v0.4.x before continuing.
Diffstat (limited to 'home')
-rwxr-xr-xhome/header.asm20
-rw-r--r--home/init.asm2
-rw-r--r--home/text.asm2
3 files changed, 14 insertions, 10 deletions
diff --git a/home/header.asm b/home/header.asm
index b1d30d02..75b43056 100755
--- a/home/header.asm
+++ b/home/header.asm
@@ -4,10 +4,12 @@ SECTION "rst0", ROM0[$0000]
di
jp Start
-SECTION "rst8", ROM0[$0008] ; rst FarCall
+SECTION "rst8", ROM0[$0008]
+FarCall::
jp FarCall_hl
-SECTION "rst10", ROM0[$0010] ; rst Bankswitch
+SECTION "rst10", ROM0[$0010]
+Bankswitch::
ldh [hROMBank], a
ld [MBC3RomBank], a
ret
@@ -18,7 +20,8 @@ SECTION "rst18", ROM0[$0018]
SECTION "rst20", ROM0[$0020]
rst $38
-SECTION "rst28", ROM0[$0028] ; rst JumpTable
+SECTION "rst28", ROM0[$0028]
+JumpTable::
push de
ld e, a
ld d, 0
@@ -53,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 - $0104
+; 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
diff --git a/home/init.asm b/home/init.asm
index a1e95d16..e82e4929 100644
--- a/home/init.asm
+++ b/home/init.asm
@@ -163,7 +163,7 @@ BlankBGMap::
FillBGMap::
ld a, l
-asm_69e
+asm_69e:
ld de, $400
ld l, e
.loop
diff --git a/home/text.asm b/home/text.asm
index 1480dd92..628bc0f6 100644
--- a/home/text.asm
+++ b/home/text.asm
@@ -812,7 +812,7 @@ Text_TX_SFX:: ; 1380 (0:1380)
pop bc
ret
-Text_TX_CRY
+Text_TX_CRY::
push de
ld e, [hl]
inc hl