summaryrefslogtreecommitdiff
path: root/home.asm
diff options
context:
space:
mode:
Diffstat (limited to 'home.asm')
-rw-r--r--home.asm53
1 files changed, 18 insertions, 35 deletions
diff --git a/home.asm b/home.asm
index e9dc60c3..dc0b0889 100644
--- a/home.asm
+++ b/home.asm
@@ -1937,8 +1937,7 @@ DisplayListMenuID:: ; 2be6 (0:2be6)
ld [wd125],a
call DisplayTextBoxID ; draw the menu text box
call UpdateSprites ; move sprites
- FuncCoord 4,2 ; coordinates of upper left corner of menu text box
- ld hl,Coord
+ hlCoord 4, 2 ; coordinates of upper left corner of menu text box
ld de,$090e ; height and width of menu text box
ld a,[wListMenuID]
and a ; is it a PC pokemon list?
@@ -1974,13 +1973,12 @@ DisplayListMenuIDLoop:: ; 2c53 (0:2c53)
jr z,.notOldManBattle
.oldManBattle
ld a,"▶"
- FuncCoord 5,4
- ld [Coord],a ; place menu cursor in front of first menu entry
+ Coorda 5, 4 ; place menu cursor in front of first menu entry
ld c,80
call DelayFrames
xor a
ld [wCurrentMenuItem],a
- ld hl,Coord
+ hlCoord 5, 4
ld a,l
ld [wMenuCursorLocation],a
ld a,h
@@ -2099,27 +2097,23 @@ DisplayListMenuIDLoop:: ; 2c53 (0:2c53)
DisplayChooseQuantityMenu:: ; 2d57 (0:2d57)
; text box dimensions/coordinates for just quantity
- FuncCoord 15,9
- ld hl,Coord
+ hlCoord 15, 9
ld b,1 ; height
ld c,3 ; width
ld a,[wListMenuID]
cp a,PRICEDITEMLISTMENU
jr nz,.drawTextBox
; text box dimensions/coordinates for quantity and price
- FuncCoord 7,9
- ld hl,Coord
+ hlCoord 7, 9
ld b,1 ; height
ld c,11 ; width
.drawTextBox
call TextBoxBorder
- FuncCoord 16,10
- ld hl,Coord
+ hlCoord 16, 10
ld a,[wListMenuID]
cp a,PRICEDITEMLISTMENU
jr nz,.printInitialQuantity
- FuncCoord 8,10
- ld hl,Coord
+ hlCoord 8, 10
.printInitialQuantity
ld de,InitialQuantityText
call PlaceString
@@ -2159,8 +2153,7 @@ DisplayChooseQuantityMenu:: ; 2d57 (0:2d57)
ld a,[wcf97] ; max quantity
ld [hl],a
.handleNewQuantity
- FuncCoord 17,10
- ld hl,Coord
+ hlCoord 17, 10
ld a,[wListMenuID]
cp a,PRICEDITEMLISTMENU
jr nz,.printQuantity
@@ -2199,15 +2192,13 @@ DisplayChooseQuantityMenu:: ; 2d57 (0:2d57)
ld a,[$ffa4]
ld [$ffa1],a
.skipHalvingPrice
- FuncCoord 12,10
- ld hl,Coord
+ hlCoord 12, 10
ld de,SpacesBetweenQuantityAndPriceText
call PlaceString
ld de,$ff9f ; total price
ld c,$a3
call PrintBCDNumber
- FuncCoord 9,10
- ld hl,Coord
+ hlCoord 9, 10
.printQuantity
ld de,wcf96 ; current quantity
ld bc,$8102 ; print leading zeroes, 1 byte, 2 digits
@@ -2246,8 +2237,7 @@ ExitListMenu:: ; 2e3b (0:2e3b)
ret
PrintListMenuEntries:: ; 2e5a (0:2e5a)
- FuncCoord 5, 3
- ld hl,Coord
+ hlCoord 5, 3
ld b,$09
ld c,$0e
call ClearScreenArea
@@ -2272,8 +2262,7 @@ PrintListMenuEntries:: ; 2e5a (0:2e5a)
jr nc,.noCarry
inc d
.noCarry
- FuncCoord 6,4 ; coordinates of first list entry name
- ld hl,Coord
+ hlCoord 6, 4 ; coordinates of first list entry name
ld b,4 ; print 4 names
.loop
ld a,b
@@ -3539,8 +3528,7 @@ Func_35f4:: ; 35f4 (0:35f4)
InitYesNoTextBoxParameters:: ; 35ff (0:35ff)
xor a
ld [wd12c], a
- FuncCoord 14, 7
- ld hl, Coord
+ hlCoord 14, 7
ld bc, $80f
ret
@@ -3548,8 +3536,7 @@ YesNoChoicePokeCenter:: ; 360a (0:360a)
call SaveScreenTilesToBuffer1
ld a, $6
ld [wd12c], a
- FuncCoord 11, 6
- ld hl, Coord
+ hlCoord 11, 6
ld bc, $80c
jr DisplayYesNoChoice
@@ -3557,8 +3544,7 @@ Func_361a:: ; 361a (0:361a)
call SaveScreenTilesToBuffer1
ld a, $3
ld [wd12c], a
- FuncCoord 12, 7
- ld hl, Coord
+ hlCoord 12, 7
ld bc, $080d
DisplayYesNoChoice:: ; 3628 (0:3628)
ld a, $14
@@ -3995,8 +3981,7 @@ WaitForTextScrollButtonPress:: ; 3865 (0:3865)
jr z, .asm_387c
call Func_716c6
.asm_387c
- FuncCoord 18, 16
- ld hl, Coord
+ hlCoord 18, 16
call HandleDownArrowBlinkTiming
pop hl
call JoypadLowSensitivity
@@ -4472,8 +4457,7 @@ HandleMenuInputPokemonSelection:: ; 3ac2 (0:3ac2)
and a ; was a key pressed?
jr nz,.keyPressed
push hl
- FuncCoord 18,11 ; coordinates of blinking down arrow in some menus
- ld hl,Coord
+ hlCoord 18, 11 ; coordinates of blinking down arrow in some menus
call HandleDownArrowBlinkTiming ; blink down arrow (if any)
pop hl
ld a,[wMenuJoypadPollCount]
@@ -4734,8 +4718,7 @@ PrintText:: ; 3c49 (0:3c49)
call Delay3
pop hl
Func_3c59:: ; 3c59 (0:3c59)
- FuncCoord 1,14
- ld bc,Coord
+ bcCoord 1, 14
jp TextCommandProcessor
; converts a big-endian binary number into decimal and prints it