summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryenatch <yenatch@gmail.com>2014-08-22 20:41:57 -0700
committeryenatch <yenatch@gmail.com>2014-08-22 20:41:57 -0700
commit3be6ca012f8681c664977788fbe692eee72cb9ae (patch)
tree825f9023137fff9d74120ef258dd1f2f08a4bd09
parented15916f05fbd21a84b1ae033acfd79b29a68c89 (diff)
Use AttrMap and TileMap labels for relative addressing.
-rw-r--r--gfx/pics/animation.asm2
-rw-r--r--home.asm4
-rw-r--r--main.asm20
3 files changed, 13 insertions, 13 deletions
diff --git a/gfx/pics/animation.asm b/gfx/pics/animation.asm
index 7f2c3ca88..99ba4e9a8 100644
--- a/gfx/pics/animation.asm
+++ b/gfx/pics/animation.asm
@@ -899,7 +899,7 @@ Functiond0551: ; d0551
ld a, [hli]
ld h, [hl]
ld l, a
- ld de, $939
+ ld de, AttrMap - TileMap
add hl, de
ret
; d055c
diff --git a/home.asm b/home.asm
index f74806c00..38be66710 100644
--- a/home.asm
+++ b/home.asm
@@ -2089,7 +2089,7 @@ INCLUDE "home/mobile.asm"
Function3eea:: ; 3eea
push hl
push bc
- ld de, $0939
+ ld de, AttrMap - TileMap
add hl, de
inc b
inc b
@@ -2116,7 +2116,7 @@ Function3efd:: ; 3efd
Function3f0d:: ; 3f0d
push hl
push bc
- ld de, $0939
+ ld de, AttrMap - TileMap
add hl, de
inc b
inc b
diff --git a/main.asm b/main.asm
index 34fec586d..a508909e9 100644
--- a/main.asm
+++ b/main.asm
@@ -49847,7 +49847,7 @@ Function48cdc: ; 48cdc (12:4cdc)
call Function48cfd
pop hl
pop bc
- ld de, $939
+ ld de, AttrMap - TileMap
add hl, de
inc b
inc b
@@ -54575,7 +54575,7 @@ Function4d35b: ; 4d35b
call Function4d37e
pop hl
pop bc
- ld de, $0939
+ ld de, AttrMap - TileMap
add hl, de
inc b
inc b
@@ -66433,7 +66433,7 @@ Function8920f: ; 8920f
Function89215: ; 89215
push hl
push bc
- ld bc, $0939
+ ld bc, AttrMap - TileMap
add hl, bc
ld [hl], a
pop bc
@@ -68959,7 +68959,7 @@ Function8a0a1: ; 8a0a1 (22:60a1)
Function8a0c1: ; 8a0c1 (22:60c1)
push hl
- ld bc, $939
+ ld bc, AttrMap - TileMap
add hl, bc
ld a, [hl]
pop hl
@@ -68985,7 +68985,7 @@ Function8a0c9: ; 8a0c9 (22:60c9)
Function8a0de: ; 8a0de (22:60de)
call Function8a0c9
- ld de, $939
+ ld de, AttrMap - TileMap
add hl, de
ret
@@ -70837,7 +70837,7 @@ Function8ae68: ; 8ae68
.asm_8aea5
call Function8af09
- ld bc, $0939
+ ld bc, AttrMap - TileMap
add hl, bc
call Function8aee9
call Function3200
@@ -72367,7 +72367,7 @@ Function8b73e: ; 8b73e
; 8b744
Function8b744: ; 8b744
- ld de, $0939
+ ld de, AttrMap - TileMap
add hl, de
inc b
inc b
@@ -85369,7 +85369,7 @@ Functionb8101: ; b8101 (2e:4101)
Functionb8115: ; b8115
- ld de, $0939
+ ld de, AttrMap - TileMap
add hl, de
inc b
inc b
@@ -90058,7 +90058,7 @@ Functione03ec: ; e03ec
ld a, [hCGB]
and a
ret z
- ld de, $0939
+ ld de, AttrMap - TileMap
add hl, de
ld a, [CurEnemyMoveNum]
and 3
@@ -113461,7 +113461,7 @@ Function16d61d: ; 16d61d
call Function16d640
pop hl
pop bc
- ld de, $0939
+ ld de, AttrMap - TileMap
add hl, de
inc b
inc b