Replace $0 with 0 for "ld l, a / ld h, 0" idiom

This commit is contained in:
Rangi
2020-11-09 15:17:03 -05:00
parent 03e149e559
commit 17894e5f39
42 changed files with 160 additions and 160 deletions

View File

@@ -1114,7 +1114,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
@@ -1443,7 +1443,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
@@ -2105,7 +2105,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
@@ -2179,7 +2179,7 @@ BillsPC_ApplyPalettes:
BillsPC_Jumptable:
ld e, a
ld d, $0
ld d, 0
add hl, de
add hl, de
ld a, [hli]

View File

@@ -1052,7 +1052,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
@@ -1060,7 +1060,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]
@@ -1097,7 +1097,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]
@@ -1168,7 +1168,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

View File

@@ -135,7 +135,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
@@ -682,7 +682,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]
@@ -715,7 +715,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]

View File

@@ -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