summaryrefslogtreecommitdiff
path: root/home.asm
diff options
context:
space:
mode:
authorPikalaxALT <PikalaxALT@gmail.com>2015-07-25 14:25:37 -0400
committerPikalaxALT <PikalaxALT@gmail.com>2015-07-25 19:02:36 -0400
commit6c3000efd2818f8d5cb0a01770d1b92991b80340 (patch)
tree38d458d3ff19039cd865998bb122666b943e91d6 /home.asm
parent432df825d4039a44a49fff01ef843395ab5abb3d (diff)
Macro update, roam mon annotations
Updated map and mapgroup macros to get around an rgbds bug. Legendary beast locale handling annotated and relabeled. Added a new constant NUM_ENGINE_FLAGS for use in the EngineFlagAction function. This will make it easier for modders to add or remove engine flags.
Diffstat (limited to 'home.asm')
-rw-r--r--home.asm25
1 files changed, 8 insertions, 17 deletions
diff --git a/home.asm b/home.asm
index 233c0c9a7..cd8c3ecf2 100644
--- a/home.asm
+++ b/home.asm
@@ -215,7 +215,7 @@ INCLUDE "home/copy2.asm"
Function309d:: ; 309d
ld a, [rSVBK]
push af
- ld a, 2
+ ld a, BANK(w2_d000)
ld [rSVBK], a
hlcoord 0, 0
ld de, w2_d000
@@ -238,7 +238,7 @@ Function30b4:: ; 30b4
Function30bf:: ; 30bf
ld a, [rSVBK]
push af
- ld a, 2
+ ld a, BANK(w2_d000)
ld [rSVBK], a
ld hl, w2_d000
decoord 0, 0
@@ -251,9 +251,11 @@ Function30bf:: ; 30bf
CopyName1:: ; 30d6
+; Copies the name from de to StringBuffer2
ld hl, StringBuffer2
CopyName2:: ; 30d9
+; Copies the name from de to hl
.loop
ld a, [de]
inc de
@@ -300,17 +302,6 @@ SkipNames:: ; 0x30f4
ret
; 0x30fe
-AddNTimes:: ; 0x30fe
-; Add bc * a to hl.
- and a
- ret z
-.loop
- add hl, bc
- dec a
- jr nz, .loop
- ret
-; 0x3105
-
INCLUDE "home/math.asm"
@@ -727,7 +718,7 @@ ClearPalettes:: ; 3317
ld a, [rSVBK]
push af
- ld a, 5
+ ld a, BANK(BGPals)
ld [rSVBK], a
; Fill BGPals and OBPals with $ffff (white)
@@ -1273,11 +1264,11 @@ Function3599:: ; 3599
; 35b0
Function35b0:: ; 35b0
- ld hl, wdbf9 + 3
+ ld hl, wCurrentCaller + 3
ld a, [hli]
ld h, [hl]
ld l, a
- ld a, [wdbf9 + 2]
+ ld a, [wCurrentCaller + 2]
and a
jr z, .asm_35d3
@@ -1311,7 +1302,7 @@ Function35b0:: ; 35b0
.asm_35d5
pop af
ld d, a
- ld a, [wdbf9 + 2]
+ ld a, [wCurrentCaller + 2]
sub d
inc a
scf