Use *Coord instead of FuncCoord

Using 'Coord =' doesn't like using wTileMap
So use hlCoord, deCoord, bcCoord, aCoord, Coorda, or dwCoord
to avoid static addresses
This commit is contained in:
U-Fish-PC\Daniel 2014-06-25 16:58:27 -04:00
parent b36f793667
commit bd533aa79b
53 changed files with 519 additions and 975 deletions

View file

@ -101,8 +101,7 @@ Func_610c2: ; 610c2 (18:50c2)
push hl
ld [wd11e], a
call GetItemName
FuncCoord 2, 2
ld hl, Coord
hlCoord 2, 2
ld a, [$ffdb]
ld bc, $28
call AddNTimes

View file

@ -10,8 +10,7 @@ HandleDoors: ; 1a609 (6:6609)
ld a, [hli]
ld h, [hl]
ld l, a
FuncCoord 8, 9
ld a, [Coord]
aCoord 8, 9
ld b, a
.asm_1a621
ld a, [hli]

View file

@ -8,8 +8,7 @@ HandleLedges: ; 1a672 (6:6672)
predef Func_c586
ld a, [wSpriteStateData1 + 9]
ld b, a
FuncCoord 8, 9
ld a, [Coord]
aCoord 8, 9
ld c, a
ld a, [wcfc6]
ld d, a

View file

@ -8,8 +8,7 @@ UpdatePlayerSprite: ; 4e31 (1:4e31)
ld [wSpriteStateData2], a
jr .asm_4e4a
.asm_4e41
FuncCoord 8, 9
ld a, [Coord]
aCoord 8, 9
ld [$ff93], a
cp $60
jr c, .asm_4e50

View file

@ -349,8 +349,7 @@ Func_70787: ; 70787 (1c:4787)
jr z, .asm_707a4
cp c
jr nz, .asm_7079e
FuncCoord 8, 9
ld a, [Coord]
aCoord 8, 9
cp [hl]
jr z, .asm_707a2
.asm_7079e

View file

@ -77,8 +77,7 @@ DisplayPokemartDialogue_: ; 6c20 (1:6c20)
ld hl,PokemartTellSellPriceText
ld bc,$0e01
call PrintText
FuncCoord 14,7
ld hl,Coord
hlCoord 14, 7
ld bc,$080f
ld a,$14
ld [wd125],a
@ -149,8 +148,7 @@ DisplayPokemartDialogue_: ; 6c20 (1:6c20)
call CopyStringToCF4B ; copy name to wcf4b
ld hl,PokemartTellBuyPriceText
call PrintText
FuncCoord 14,7
ld hl,Coord
hlCoord 14, 7
ld bc,$080f
ld a,$14
ld [wd125],a