ref: 0eb49d59416030cfa584b9b1e823b31ea854f46a
parent: 5153360215b01362bf699ecba38f9554bee8e6e7
author: yenatch <[email protected]>
date: Wed Apr 9 14:27:29 EDT 2014
Fix a title screen label that accidentally made its way into bank 1. Somehow, a title screen (bank 0x43) function had its label put in bank 1. This caused changes to either bank to break the compiled rom. fixes 61a3d145
--- a/engine/title.asm
+++ b/engine/title.asm
@@ -119,7 +119,7 @@
ld bc, $0714 ; 20x7
ld d, $80
ld e, $14
- call DrawGraphic
+ call DrawTitleGraphic
; Draw copyright text
ld hl, $9c03 ; BGMap1(3,0)
@@ -126,7 +126,7 @@
ld bc, $010d ; 13x1
ld d, $c
ld e, $10
- call DrawGraphic
+ call DrawTitleGraphic
; Initialize running Suicune?
ld d, $0
@@ -286,7 +286,13 @@
ret
; 10eeef
-Function10eeef: ; 10eeef
+DrawTitleGraphic: ; 10eeef
+; input:
+; hl: draw location
+; b: height
+; c: width
+; d: tile to start drawing from
+; e: number of tiles to advance for each row
.asm_10eeef
push de
push bc
--- a/main.asm
+++ b/main.asm
@@ -5809,27 +5809,16 @@
.asm_6ee9
bit 6, [hl]
- jr nz, Function6ef5
+ jr nz, .asm_6ef5
+
push hl
push bc
- ; fallthrough
-; 6eef
-
-DrawGraphic: ; 6eef
-; input:
-; hl: draw location
-; b: height
-; c: width
-; d: tile to start drawing from
-; e: number of tiles to advance for each row
call Function7009
pop bc
pop hl
ret c
- ; fallthrough
-; 6ef5
-Function6ef5: ; 6ef5
+.asm_6ef5
bit 5, [hl]
jr nz, .asm_6f05
push hl