mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
Use AttrMap and TileMap labels for relative addressing.
This commit is contained in:
parent
ed15916f05
commit
3be6ca012f
@ -899,7 +899,7 @@ Functiond0551: ; d0551
|
|||||||
ld a, [hli]
|
ld a, [hli]
|
||||||
ld h, [hl]
|
ld h, [hl]
|
||||||
ld l, a
|
ld l, a
|
||||||
ld de, $939
|
ld de, AttrMap - TileMap
|
||||||
add hl, de
|
add hl, de
|
||||||
ret
|
ret
|
||||||
; d055c
|
; d055c
|
||||||
|
4
home.asm
4
home.asm
@ -2089,7 +2089,7 @@ INCLUDE "home/mobile.asm"
|
|||||||
Function3eea:: ; 3eea
|
Function3eea:: ; 3eea
|
||||||
push hl
|
push hl
|
||||||
push bc
|
push bc
|
||||||
ld de, $0939
|
ld de, AttrMap - TileMap
|
||||||
add hl, de
|
add hl, de
|
||||||
inc b
|
inc b
|
||||||
inc b
|
inc b
|
||||||
@ -2116,7 +2116,7 @@ Function3efd:: ; 3efd
|
|||||||
Function3f0d:: ; 3f0d
|
Function3f0d:: ; 3f0d
|
||||||
push hl
|
push hl
|
||||||
push bc
|
push bc
|
||||||
ld de, $0939
|
ld de, AttrMap - TileMap
|
||||||
add hl, de
|
add hl, de
|
||||||
inc b
|
inc b
|
||||||
inc b
|
inc b
|
||||||
|
20
main.asm
20
main.asm
@ -49847,7 +49847,7 @@ Function48cdc: ; 48cdc (12:4cdc)
|
|||||||
call Function48cfd
|
call Function48cfd
|
||||||
pop hl
|
pop hl
|
||||||
pop bc
|
pop bc
|
||||||
ld de, $939
|
ld de, AttrMap - TileMap
|
||||||
add hl, de
|
add hl, de
|
||||||
inc b
|
inc b
|
||||||
inc b
|
inc b
|
||||||
@ -54575,7 +54575,7 @@ Function4d35b: ; 4d35b
|
|||||||
call Function4d37e
|
call Function4d37e
|
||||||
pop hl
|
pop hl
|
||||||
pop bc
|
pop bc
|
||||||
ld de, $0939
|
ld de, AttrMap - TileMap
|
||||||
add hl, de
|
add hl, de
|
||||||
inc b
|
inc b
|
||||||
inc b
|
inc b
|
||||||
@ -66433,7 +66433,7 @@ Function8920f: ; 8920f
|
|||||||
Function89215: ; 89215
|
Function89215: ; 89215
|
||||||
push hl
|
push hl
|
||||||
push bc
|
push bc
|
||||||
ld bc, $0939
|
ld bc, AttrMap - TileMap
|
||||||
add hl, bc
|
add hl, bc
|
||||||
ld [hl], a
|
ld [hl], a
|
||||||
pop bc
|
pop bc
|
||||||
@ -68959,7 +68959,7 @@ Function8a0a1: ; 8a0a1 (22:60a1)
|
|||||||
|
|
||||||
Function8a0c1: ; 8a0c1 (22:60c1)
|
Function8a0c1: ; 8a0c1 (22:60c1)
|
||||||
push hl
|
push hl
|
||||||
ld bc, $939
|
ld bc, AttrMap - TileMap
|
||||||
add hl, bc
|
add hl, bc
|
||||||
ld a, [hl]
|
ld a, [hl]
|
||||||
pop hl
|
pop hl
|
||||||
@ -68985,7 +68985,7 @@ Function8a0c9: ; 8a0c9 (22:60c9)
|
|||||||
|
|
||||||
Function8a0de: ; 8a0de (22:60de)
|
Function8a0de: ; 8a0de (22:60de)
|
||||||
call Function8a0c9
|
call Function8a0c9
|
||||||
ld de, $939
|
ld de, AttrMap - TileMap
|
||||||
add hl, de
|
add hl, de
|
||||||
ret
|
ret
|
||||||
|
|
||||||
@ -70837,7 +70837,7 @@ Function8ae68: ; 8ae68
|
|||||||
|
|
||||||
.asm_8aea5
|
.asm_8aea5
|
||||||
call Function8af09
|
call Function8af09
|
||||||
ld bc, $0939
|
ld bc, AttrMap - TileMap
|
||||||
add hl, bc
|
add hl, bc
|
||||||
call Function8aee9
|
call Function8aee9
|
||||||
call Function3200
|
call Function3200
|
||||||
@ -72367,7 +72367,7 @@ Function8b73e: ; 8b73e
|
|||||||
; 8b744
|
; 8b744
|
||||||
|
|
||||||
Function8b744: ; 8b744
|
Function8b744: ; 8b744
|
||||||
ld de, $0939
|
ld de, AttrMap - TileMap
|
||||||
add hl, de
|
add hl, de
|
||||||
inc b
|
inc b
|
||||||
inc b
|
inc b
|
||||||
@ -85369,7 +85369,7 @@ Functionb8101: ; b8101 (2e:4101)
|
|||||||
|
|
||||||
|
|
||||||
Functionb8115: ; b8115
|
Functionb8115: ; b8115
|
||||||
ld de, $0939
|
ld de, AttrMap - TileMap
|
||||||
add hl, de
|
add hl, de
|
||||||
inc b
|
inc b
|
||||||
inc b
|
inc b
|
||||||
@ -90058,7 +90058,7 @@ Functione03ec: ; e03ec
|
|||||||
ld a, [hCGB]
|
ld a, [hCGB]
|
||||||
and a
|
and a
|
||||||
ret z
|
ret z
|
||||||
ld de, $0939
|
ld de, AttrMap - TileMap
|
||||||
add hl, de
|
add hl, de
|
||||||
ld a, [CurEnemyMoveNum]
|
ld a, [CurEnemyMoveNum]
|
||||||
and 3
|
and 3
|
||||||
@ -113461,7 +113461,7 @@ Function16d61d: ; 16d61d
|
|||||||
call Function16d640
|
call Function16d640
|
||||||
pop hl
|
pop hl
|
||||||
pop bc
|
pop bc
|
||||||
ld de, $0939
|
ld de, AttrMap - TileMap
|
||||||
add hl, de
|
add hl, de
|
||||||
inc b
|
inc b
|
||||||
inc b
|
inc b
|
||||||
|
Loading…
Reference in New Issue
Block a user