summaryrefslogtreecommitdiff
path: root/engine/pokemon
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2020-11-09 15:16:44 -0500
committerRangi <remy.oukaour+rangi42@gmail.com>2020-11-09 15:20:35 -0500
commitbc8636d68805116ef126feecc07cde63238490da (patch)
treed88fed0393eb69c8c37fbaf7ee21f7dd3af289c9 /engine/pokemon
parent6e20c30f6e48ba36237d42b13ea6e6827b62ff40 (diff)
Replace $0 with 0 for "ld l, a / ld h, 0" idiom
Diffstat (limited to 'engine/pokemon')
-rw-r--r--engine/pokemon/bills_pc.asm8
-rw-r--r--engine/pokemon/mon_menu.asm8
-rw-r--r--engine/pokemon/party_menu.asm6
-rw-r--r--engine/pokemon/switchpartymons.asm4
4 files changed, 13 insertions, 13 deletions
diff --git a/engine/pokemon/bills_pc.asm b/engine/pokemon/bills_pc.asm
index 3be170ec..2ba4c48c 100644
--- a/engine/pokemon/bills_pc.asm
+++ b/engine/pokemon/bills_pc.asm
@@ -1099,7 +1099,7 @@ BillsPC_LoadMonStats:
ld hl, wBillsPC_ScrollPosition
add [hl]
ld e, a
- ld d, $0
+ ld d, 0
ld hl, wBillsPCPokemonList + 1 ; box number
add hl, de
add hl, de
@@ -1428,7 +1428,7 @@ BillsPC_GetSelectedPokemonSpecies:
ld hl, wBillsPC_ScrollPosition
add [hl]
ld e, a
- ld d, $0
+ ld d, 0
ld hl, wBillsPCPokemonList
add hl, de
add hl, de
@@ -2083,7 +2083,7 @@ MovePKMNWitoutMail_InsertMon:
CopySpeciesToTemp:
ld a, [wCurPartyMon]
ld c, a
- ld b, $0
+ ld b, 0
add hl, bc
ld a, [hl]
ld [wCurPartySpecies], a
@@ -2157,7 +2157,7 @@ BillsPC_ApplyPalettes:
BillsPC_Jumptable:
ld e, a
- ld d, $0
+ ld d, 0
add hl, de
add hl, de
ld a, [hli]
diff --git a/engine/pokemon/mon_menu.asm b/engine/pokemon/mon_menu.asm
index 9fb292f7..aaafad18 100644
--- a/engine/pokemon/mon_menu.asm
+++ b/engine/pokemon/mon_menu.asm
@@ -1051,7 +1051,7 @@ MoveScreenLoop:
ld a, [wMenuCursorY]
dec a
ld c, a
- ld b, $0
+ ld b, 0
add hl, bc
ld d, h
ld e, l
@@ -1059,7 +1059,7 @@ MoveScreenLoop:
ld a, [wMoveSwapBuffer]
dec a
ld c, a
- ld b, $0
+ ld b, 0
add hl, bc
ld a, [de]
ld b, [hl]
@@ -1096,7 +1096,7 @@ SetUpMoveScreenBG:
farcall ClearSpriteAnims2
ld a, [wCurPartyMon]
ld e, a
- ld d, $0
+ ld d, 0
ld hl, wPartySpecies
add hl, de
ld a, [hl]
@@ -1167,7 +1167,7 @@ PrepareToPlaceMoveData:
ld a, [wMenuCursorY]
dec a
ld c, a
- ld b, $0
+ ld b, 0
add hl, bc
ld a, [hl]
ld [wCurSpecies], a
diff --git a/engine/pokemon/party_menu.asm b/engine/pokemon/party_menu.asm
index f10248e4..16126667 100644
--- a/engine/pokemon/party_menu.asm
+++ b/engine/pokemon/party_menu.asm
@@ -134,7 +134,7 @@ PlacePartyHPBar:
ld hl, wHPPals
ld a, [wSGBPals]
ld c, a
- ld b, $0
+ ld b, 0
add hl, bc
call SetHPPal
ld b, SCGB_PARTY_MENU_HP_BARS
@@ -604,7 +604,7 @@ PartyMenuSelect:
dec a
ld [wCurPartyMon], a
ld c, a
- ld b, $0
+ ld b, 0
ld hl, wPartySpecies
add hl, bc
ld a, [hl]
@@ -637,7 +637,7 @@ PrintPartyMenuText:
and $f ; drop high nibble
ld hl, PartyMenuStrings
ld e, a
- ld d, $0
+ ld d, 0
add hl, de
add hl, de
ld a, [hli]
diff --git a/engine/pokemon/switchpartymons.asm b/engine/pokemon/switchpartymons.asm
index 512332fc..1ec3cf69 100644
--- a/engine/pokemon/switchpartymons.asm
+++ b/engine/pokemon/switchpartymons.asm
@@ -46,13 +46,13 @@ _SwitchPartyMons:
ld bc, wPartySpecies
ld a, [wSwitchMonTo]
ld l, a
- ld h, $0
+ ld h, 0
add hl, bc
ld d, h
ld e, l
ld a, [wSwitchMonFrom]
ld l, a
- ld h, $0
+ ld h, 0
add hl, bc
ld a, [hl]
push af