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

@ -679,7 +679,7 @@ BattleAnimCmd_5GFX:
push bc push bc
push hl push hl
ld l, a ld l, a
ld h, $0 ld h, 0
rept 4 rept 4
add hl, hl add hl, hl
endr endr

View File

@ -1990,7 +1990,7 @@ BattleBGEffect_FadeMonsToBlackRepeating:
swap a swap a
sla a sla a
ld e, a ld e, a
ld d, $0 ld d, 0
push bc push bc
call BGEffect_CheckBattleTurn call BGEffect_CheckBattleTurn
jr nz, .player jr nz, .player
@ -2614,7 +2614,7 @@ BattleBGEffect_GetFirstDMGPal:
inc [hl] inc [hl]
BattleBGEffect_GetNextDMGPal: BattleBGEffect_GetNextDMGPal:
ld l, a ld l, a
ld h, $0 ld h, 0
add hl, de add hl, de
ld a, [hl] ld a, [hl]
cp -1 cp -1
@ -2823,7 +2823,7 @@ DeformWater:
ld a, [wBattleSineWaveTempProgress] ld a, [wBattleSineWaveTempProgress]
add e add e
ld e, a ld e, a
ld d, $0 ld d, 0
ret ret
BattleBGEffect_WavyScreenFX: BattleBGEffect_WavyScreenFX:

View File

@ -3396,7 +3396,7 @@ BattleAnimFunction_SkyAttack:
inc [hl] inc [hl]
srl a srl a
ld e, a ld e, a
ld d, $0 ld d, 0
ldh a, [hSGB] ldh a, [hSGB]
and a and a
jr nz, .sgb jr nz, .sgb

View File

@ -176,7 +176,7 @@ Kurt_GetQuantityOfApricorn:
ld hl, wNumItems ld hl, wNumItems
ld a, [wCurItem] ld a, [wCurItem]
ld c, a ld c, a
ld b, $0 ld b, 0
.loop .loop
inc hl inc hl
ld a, [hli] ld a, [hli]
@ -344,7 +344,7 @@ Kurt_GetAddressOfApricornQuantity:
ld hl, wNumItems ld hl, wNumItems
inc hl inc hl
ld c, a ld c, a
ld b, $0 ld b, 0
add hl, bc add hl, bc
add hl, bc add hl, bc
inc hl inc hl
@ -358,7 +358,7 @@ Kurt_GetRidOfItem:
ld hl, wNumItems ld hl, wNumItems
ld a, [wCurItemQuantity] ld a, [wCurItemQuantity]
ld c, a ld c, a
ld b, $0 ld b, 0
inc hl inc hl
add hl, bc add hl, bc
add hl, bc add hl, bc

View File

@ -147,7 +147,7 @@ PlaceMapNameCenterAlign:
ld a, SCREEN_WIDTH ld a, SCREEN_WIDTH
sub c sub c
srl a srl a
ld b, $0 ld b, 0
ld c, a ld c, a
hlcoord 0, 2 hlcoord 0, 2
add hl, bc add hl, bc

View File

@ -339,7 +339,7 @@ CardFlip_ShuffleDeck:
cp CARDFLIP_DECK_SIZE cp CARDFLIP_DECK_SIZE
jr nc, .loop jr nc, .loop
ld l, a ld l, a
ld h, $0 ld h, 0
add hl, de add hl, de
ld a, [hl] ld a, [hl]
and a and a

View File

@ -216,7 +216,7 @@ endr
pop af pop af
push hl push hl
ld e, a ld e, a
ld d, $0 ld d, 0
ld hl, wMemoryGameCards ld hl, wMemoryGameCards
add hl, de add hl, de
ld a, [hl] ld a, [hl]
@ -259,7 +259,7 @@ MemoryGame_CheckMatch:
ld a, [wMemoryGameCard1Location] ld a, [wMemoryGameCard1Location]
ld e, a ld e, a
ld d, $0 ld d, 0
ld hl, wMemoryGameCards ld hl, wMemoryGameCards
add hl, de add hl, de
ld [hl], -1 ld [hl], -1

View File

@ -551,7 +551,7 @@ Slots_GetCurrentReelState:
dec a dec a
and $f and $f
ld e, a ld e, a
ld d, $0 ld d, 0
ld hl, REEL_TILEMAP_ADDR ld hl, REEL_TILEMAP_ADDR
add hl, bc add hl, bc
ld a, [hli] ld a, [hli]

View File

@ -97,7 +97,7 @@ InitUnownPuzzlePiecePositions:
and $f and $f
ld hl, .PuzzlePieceInitialPositions ld hl, .PuzzlePieceInitialPositions
ld e, a ld e, a
ld d, $0 ld d, 0
add hl, de add hl, de
ld e, [hl] ld e, [hl]
ld hl, wPuzzlePieces ld hl, wPuzzlePieces
@ -449,7 +449,7 @@ UnownPuzzle_CheckCurrentTileOccupancy:
ld hl, wPuzzlePieces ld hl, wPuzzlePieces
ld a, [wUnownPuzzleCursorPosition] ld a, [wUnownPuzzleCursorPosition]
ld e, a ld e, a
ld d, $0 ld d, 0
add hl, de add hl, de
ld a, [hl] ld a, [hl]
ret ret

View File

@ -86,7 +86,7 @@ _CGB_BattleColors:
call LoadPalette_White_Col1_Col2_Black ; PAL_BATTLE_BG_ENEMY call LoadPalette_White_Col1_Col2_Black ; PAL_BATTLE_BG_ENEMY
ld a, [wEnemyHPPal] ld a, [wEnemyHPPal]
ld l, a ld l, a
ld h, $0 ld h, 0
add hl, hl add hl, hl
add hl, hl add hl, hl
ld bc, HPBarPals ld bc, HPBarPals
@ -94,7 +94,7 @@ _CGB_BattleColors:
call LoadPalette_White_Col1_Col2_Black ; PAL_BATTLE_BG_ENEMY_HP call LoadPalette_White_Col1_Col2_Black ; PAL_BATTLE_BG_ENEMY_HP
ld a, [wPlayerHPPal] ld a, [wPlayerHPPal]
ld l, a ld l, a
ld h, $0 ld h, 0
add hl, hl add hl, hl
add hl, hl add hl, hl
ld bc, HPBarPals ld bc, HPBarPals
@ -196,7 +196,7 @@ _CGB_StatsScreenHPPals:
ld de, wBGPals1 ld de, wBGPals1
ld a, [wCurHPPal] ld a, [wCurHPPal]
ld l, a ld l, a
ld h, $0 ld h, 0
add hl, hl add hl, hl
add hl, hl add hl, hl
ld bc, HPBarPals ld bc, HPBarPals
@ -832,7 +832,7 @@ _CGB_Pokepic:
.found_top .found_top
ld a, [wMenuBorderLeftCoord] ld a, [wMenuBorderLeftCoord]
ld e, a ld e, a
ld d, $0 ld d, 0
add hl, de add hl, de
ld a, [wMenuBorderTopCoord] ld a, [wMenuBorderTopCoord]
ld b, a ld b, a

View File

@ -111,7 +111,7 @@ SGB_ApplyPartyMenuHPPals:
ld hl, wHPPals ld hl, wHPPals
ld a, [wSGBPals] ld a, [wSGBPals]
ld e, a ld e, a
ld d, $0 ld d, 0
add hl, de add hl, de
ld e, l ld e, l
ld d, h ld d, h
@ -461,7 +461,7 @@ CopyPalettes:
GetPredefPal: GetPredefPal:
ld l, a ld l, a
ld h, $0 ld h, 0
add hl, hl add hl, hl
add hl, hl add hl, hl
add hl, hl add hl, hl
@ -630,7 +630,7 @@ CGB_ApplyPartyMenuHPPals:
ld hl, wHPPals ld hl, wHPPals
ld a, [wSGBPals] ld a, [wSGBPals]
ld e, a ld e, a
ld d, $0 ld d, 0
add hl, de add hl, de
ld e, l ld e, l
ld d, h ld d, h
@ -762,7 +762,7 @@ CGBCopyTwoPredefObjectPals: ; unreferenced
_GetMonPalettePointer: _GetMonPalettePointer:
ld l, a ld l, a
ld h, $0 ld h, 0
add hl, hl add hl, hl
add hl, hl add hl, hl
add hl, hl add hl, hl

View File

@ -413,7 +413,7 @@ PokeAnim_End:
PokeAnim_GetDuration: PokeAnim_GetDuration:
; a * (1 + [wPokeAnimSpeed] / 16) ; a * (1 + [wPokeAnimSpeed] / 16)
ld c, a ld c, a
ld b, $0 ld b, 0
ld hl, 0 ld hl, 0
ld a, [wPokeAnimSpeed] ld a, [wPokeAnimSpeed]
call AddNTimes call AddNTimes
@ -466,7 +466,7 @@ PokeAnim_GetPointer:
push hl push hl
ld a, [wPokeAnimFrame] ld a, [wPokeAnimFrame]
ld e, a ld e, a
ld d, $0 ld d, 0
ld hl, wPokeAnimPointerAddr ld hl, wPokeAnimPointerAddr
ld a, [hli] ld a, [hli]
ld h, [hl] ld h, [hl]
@ -488,7 +488,7 @@ PokeAnim_GetBitmaskIndex:
ld a, [wPokeAnimCommand] ld a, [wPokeAnimCommand]
dec a dec a
ld c, a ld c, a
ld b, $0 ld b, 0
ld hl, wPokeAnimFramesAddr ld hl, wPokeAnimFramesAddr
ld a, [hli] ld a, [hli]
ld h, [hl] ld h, [hl]

View File

@ -240,7 +240,7 @@ RemoveItemFromPocket:
cp c cp c
jr nc, .ok ; memory jr nc, .ok ; memory
ld c, a ld c, a
ld b, $0 ld b, 0
add hl, bc add hl, bc
add hl, bc add hl, bc
ld a, [wCurItem] ld a, [wCurItem]

View File

@ -343,7 +343,7 @@ Gen2ToGen2LinkComms:
jr z, .start_copying_mail jr z, .start_copying_mail
ld hl, wcc4a ld hl, wcc4a
dec a dec a
ld b, $0 ld b, 0
ld c, a ld c, a
add hl, bc add hl, bc
ld [hl], SERIAL_NO_DATA_BYTE ld [hl], SERIAL_NO_DATA_BYTE

View File

@ -425,7 +425,7 @@ ScrollingMenu_CallFunctions1and2:
and a and a
jr z, .done jr z, .done
ld e, a ld e, a
ld d, $0 ld d, 0
add hl, de add hl, de
ld d, h ld d, h
ld e, l ld e, l
@ -491,7 +491,7 @@ ScrollingMenu_GetListItemCoordAndFunctionArgs:
ld a, [wMenuScrollPosition] ld a, [wMenuScrollPosition]
add e add e
ld e, a ld e, a
ld d, $0 ld d, 0
ld hl, wMenuData_ItemsPointerAddr ld hl, wMenuData_ItemsPointerAddr
ld a, [hli] ld a, [hli]
ld h, [hl] ld h, [hl]

View File

@ -1232,7 +1232,7 @@ CrystalIntro_UnownFade:
add a add a
add a add a
ld e, a ld e, a
ld d, $0 ld d, 0
ld hl, wBGPals2 ld hl, wBGPals2
add hl, de add hl, de
inc hl inc hl
@ -1248,7 +1248,7 @@ CrystalIntro_UnownFade:
.okay .okay
ld c, a ld c, a
ld b, $0 ld b, 0
ldh a, [rSVBK] ldh a, [rSVBK]
push af push af
ld a, BANK(wBGPals2) ld a, BANK(wBGPals2)
@ -1397,7 +1397,7 @@ Intro_FadeUnownWordPals:
add a add a
add a add a
ld e, a ld e, a
ld d, $0 ld d, 0
ld hl, wBGPals2 ld hl, wBGPals2
add hl, de add hl, de
rept 4 rept 4
@ -1406,7 +1406,7 @@ endr
ld a, [wIntroSceneTimer] ld a, [wIntroSceneTimer]
add a add a
ld c, a ld c, a
ld b, $0 ld b, 0
ldh a, [rSVBK] ldh a, [rSVBK]
push af push af
@ -1530,7 +1530,7 @@ Intro_RustleGrass:
and $c and $c
srl a srl a
ld e, a ld e, a
ld d, $0 ld d, 0
ld hl, .RustlingGrassPointers ld hl, .RustlingGrassPointers
add hl, de add hl, de
ld a, [hli] ld a, [hli]

View File

@ -229,7 +229,7 @@ SuicuneFrameIterator:
sla a sla a
swap a swap a
ld e, a ld e, a
ld d, $0 ld d, 0
ld hl, .Frames ld hl, .Frames
add hl, de add hl, de
ld d, [hl] ld d, [hl]

View File

@ -951,7 +951,7 @@ ApplyObjectFacing:
Script_variablesprite: Script_variablesprite:
call GetScriptByte call GetScriptByte
ld e, a ld e, a
ld d, $0 ld d, 0
ld hl, wVariableSprites ld hl, wVariableSprites
add hl, de add hl, de
call GetScriptByte call GetScriptByte

View File

@ -223,7 +223,7 @@ GetAvailableCallers:
.different_map .different_map
ld a, [wNumAvailableCallers] ld a, [wNumAvailableCallers]
ld c, a ld c, a
ld b, $0 ld b, 0
inc a inc a
ld [wNumAvailableCallers], a ld [wNumAvailableCallers], a
ld hl, wAvailableCallers ld hl, wAvailableCallers

View File

@ -1482,7 +1482,7 @@ Pokedex_PrintListing:
; Load de with wPokedexOrder + [wDexListingScrollOffset] ; Load de with wPokedexOrder + [wDexListingScrollOffset]
ld a, [wDexListingScrollOffset] ld a, [wDexListingScrollOffset]
ld e, a ld e, a
ld d, $0 ld d, 0
ld hl, wPokedexOrder ld hl, wPokedexOrder
add hl, de add hl, de
ld e, l ld e, l
@ -1581,7 +1581,7 @@ Pokedex_GetSelectedMon:
ld hl, wDexListingScrollOffset ld hl, wDexListingScrollOffset
add [hl] add [hl]
ld e, a ld e, a
ld d, $0 ld d, 0
ld hl, wPokedexOrder ld hl, wPokedexOrder
add hl, de add hl, de
ld a, [hl] ld a, [hl]

View File

@ -2709,7 +2709,7 @@ TownMapMon:
ld a, [wCurPartyMon] ld a, [wCurPartyMon]
ld hl, wPartySpecies ld hl, wPartySpecies
ld e, a ld e, a
ld d, $0 ld d, 0
add hl, de add hl, de
ld a, [hl] ld a, [hl]
ld [wTempIconSpecies], a ld [wTempIconSpecies], a

View File

@ -1114,7 +1114,7 @@ BillsPC_LoadMonStats:
ld hl, wBillsPC_ScrollPosition ld hl, wBillsPC_ScrollPosition
add [hl] add [hl]
ld e, a ld e, a
ld d, $0 ld d, 0
ld hl, wBillsPCPokemonList + 1 ; box number ld hl, wBillsPCPokemonList + 1 ; box number
add hl, de add hl, de
add hl, de add hl, de
@ -1443,7 +1443,7 @@ BillsPC_GetSelectedPokemonSpecies:
ld hl, wBillsPC_ScrollPosition ld hl, wBillsPC_ScrollPosition
add [hl] add [hl]
ld e, a ld e, a
ld d, $0 ld d, 0
ld hl, wBillsPCPokemonList ld hl, wBillsPCPokemonList
add hl, de add hl, de
add hl, de add hl, de
@ -2105,7 +2105,7 @@ MovePKMNWitoutMail_InsertMon:
CopySpeciesToTemp: CopySpeciesToTemp:
ld a, [wCurPartyMon] ld a, [wCurPartyMon]
ld c, a ld c, a
ld b, $0 ld b, 0
add hl, bc add hl, bc
ld a, [hl] ld a, [hl]
ld [wCurPartySpecies], a ld [wCurPartySpecies], a
@ -2179,7 +2179,7 @@ BillsPC_ApplyPalettes:
BillsPC_Jumptable: BillsPC_Jumptable:
ld e, a ld e, a
ld d, $0 ld d, 0
add hl, de add hl, de
add hl, de add hl, de
ld a, [hli] ld a, [hli]

View File

@ -1052,7 +1052,7 @@ MoveScreenLoop:
ld a, [wMenuCursorY] ld a, [wMenuCursorY]
dec a dec a
ld c, a ld c, a
ld b, $0 ld b, 0
add hl, bc add hl, bc
ld d, h ld d, h
ld e, l ld e, l
@ -1060,7 +1060,7 @@ MoveScreenLoop:
ld a, [wMoveSwapBuffer] ld a, [wMoveSwapBuffer]
dec a dec a
ld c, a ld c, a
ld b, $0 ld b, 0
add hl, bc add hl, bc
ld a, [de] ld a, [de]
ld b, [hl] ld b, [hl]
@ -1097,7 +1097,7 @@ SetUpMoveScreenBG:
farcall ClearSpriteAnims2 farcall ClearSpriteAnims2
ld a, [wCurPartyMon] ld a, [wCurPartyMon]
ld e, a ld e, a
ld d, $0 ld d, 0
ld hl, wPartySpecies ld hl, wPartySpecies
add hl, de add hl, de
ld a, [hl] ld a, [hl]
@ -1168,7 +1168,7 @@ PrepareToPlaceMoveData:
ld a, [wMenuCursorY] ld a, [wMenuCursorY]
dec a dec a
ld c, a ld c, a
ld b, $0 ld b, 0
add hl, bc add hl, bc
ld a, [hl] ld a, [hl]
ld [wCurSpecies], a ld [wCurSpecies], a

View File

@ -135,7 +135,7 @@ PlacePartyHPBar:
ld hl, wHPPals ld hl, wHPPals
ld a, [wSGBPals] ld a, [wSGBPals]
ld c, a ld c, a
ld b, $0 ld b, 0
add hl, bc add hl, bc
call SetHPPal call SetHPPal
ld b, SCGB_PARTY_MENU_HP_BARS ld b, SCGB_PARTY_MENU_HP_BARS
@ -682,7 +682,7 @@ PartyMenuSelect:
dec a dec a
ld [wCurPartyMon], a ld [wCurPartyMon], a
ld c, a ld c, a
ld b, $0 ld b, 0
ld hl, wPartySpecies ld hl, wPartySpecies
add hl, bc add hl, bc
ld a, [hl] ld a, [hl]
@ -715,7 +715,7 @@ PrintPartyMenuText:
and $f ; drop high nibble and $f ; drop high nibble
ld hl, PartyMenuStrings ld hl, PartyMenuStrings
ld e, a ld e, a
ld d, $0 ld d, 0
add hl, de add hl, de
add hl, de add hl, de
ld a, [hli] ld a, [hli]

View File

@ -46,13 +46,13 @@ _SwitchPartyMons:
ld bc, wPartySpecies ld bc, wPartySpecies
ld a, [wSwitchMonTo] ld a, [wSwitchMonTo]
ld l, a ld l, a
ld h, $0 ld h, 0
add hl, bc add hl, bc
ld d, h ld d, h
ld e, l ld e, l
ld a, [wSwitchMonFrom] ld a, [wSwitchMonFrom]
ld l, a ld l, a
ld h, $0 ld h, 0
add hl, bc add hl, bc
ld a, [hl] ld a, [hl]
push af push af

View File

@ -852,7 +852,7 @@ Printer_GetMonGender:
Printer_GetBoxMonSpecies: Printer_GetBoxMonSpecies:
push hl push hl
ld e, a ld e, a
ld d, $0 ld d, 0
ld a, [wAddrOfBoxToPrint] ld a, [wAddrOfBoxToPrint]
ld l, a ld l, a
ld a, [wAddrOfBoxToPrint + 1] ld a, [wAddrOfBoxToPrint + 1]

View File

@ -185,7 +185,7 @@ ClockResetPassword:
.getcurrentdigit .getcurrentdigit
ld a, [wStringBuffer2 + 5] ld a, [wStringBuffer2 + 5]
ld e, a ld e, a
ld d, $0 ld d, 0
ld hl, wStringBuffer2 ld hl, wStringBuffer2
add hl, de add hl, de
ret ret

View File

@ -1126,7 +1126,7 @@ CoordinatesEventText::
CheckObjectMask:: CheckObjectMask::
ldh a, [hMapObjectIndexBuffer] ldh a, [hMapObjectIndexBuffer]
ld e, a ld e, a
ld d, $0 ld d, 0
ld hl, wObjectMasks ld hl, wObjectMasks
add hl, de add hl, de
ld a, [hl] ld a, [hl]
@ -1135,7 +1135,7 @@ CheckObjectMask::
MaskObject:: MaskObject::
ldh a, [hMapObjectIndexBuffer] ldh a, [hMapObjectIndexBuffer]
ld e, a ld e, a
ld d, $0 ld d, 0
ld hl, wObjectMasks ld hl, wObjectMasks
add hl, de add hl, de
ld [hl], -1 ; masked ld [hl], -1 ; masked
@ -1144,7 +1144,7 @@ MaskObject::
UnmaskObject:: UnmaskObject::
ldh a, [hMapObjectIndexBuffer] ldh a, [hMapObjectIndexBuffer]
ld e, a ld e, a
ld d, $0 ld d, 0
ld hl, wObjectMasks ld hl, wObjectMasks
add hl, de add hl, de
ld [hl], 0 ; unmasked ld [hl], 0 ; unmasked
@ -1719,7 +1719,7 @@ GetCoordTile::
and a and a
jr z, .nope jr z, .nope
ld l, a ld l, a
ld h, $0 ld h, 0
add hl, hl add hl, hl
add hl, hl add hl, hl
ld a, [wTilesetCollisionAddress] ld a, [wTilesetCollisionAddress]

View File

@ -679,7 +679,7 @@ ContinueGettingMenuJoypad:
call GetMenuIndexSet call GetMenuIndexSet
ld a, [wMenuCursorY] ld a, [wMenuCursorY]
ld l, a ld l, a
ld h, $0 ld h, 0
add hl, de add hl, de
ld a, [hl] ld a, [hl]
ld [wMenuSelection], a ld [wMenuSelection], a
@ -742,7 +742,7 @@ MenuJumptable::
GetMenuDataPointerTableEntry:: GetMenuDataPointerTableEntry::
ld e, a ld e, a
ld d, $0 ld d, 0
ld hl, wMenuDataPointerTableAddr ld hl, wMenuDataPointerTableAddr
ld a, [hli] ld a, [hli]
ld h, [hl] ld h, [hl]

View File

@ -1660,7 +1660,7 @@ Function110af4:
sub e sub e
dec a dec a
ld e, a ld e, a
ld d, $0 ld d, 0
add hl, de add hl, de
ld a, [$c829] ld a, [$c829]
ld e, a ld e, a
@ -1706,7 +1706,7 @@ Function110af4:
sub e sub e
dec a dec a
ld e, a ld e, a
ld d, $0 ld d, 0
add hl, de add hl, de
ld a, [$c829] ld a, [$c829]
ld e, a ld e, a
@ -1764,7 +1764,7 @@ Function110af4:
ld a, $80 ld a, $80
sub e sub e
ld e, a ld e, a
ld d, $0 ld d, 0
ld hl, $c880 ld hl, $c880
add hl, de add hl, de
ld a, [$c829] ld a, [$c829]
@ -1790,7 +1790,7 @@ Function110af4:
ld a, $80 ld a, $80
sub e sub e
ld e, a ld e, a
ld d, $0 ld d, 0
ld hl, $c880 ld hl, $c880
add hl, de add hl, de
ld a, [$c829] ld a, [$c829]
@ -2434,7 +2434,7 @@ Function111044:
sub e sub e
dec a dec a
ld e, a ld e, a
ld d, $0 ld d, 0
add hl, de add hl, de
ld a, [$c829] ld a, [$c829]
ld e, a ld e, a
@ -2444,7 +2444,7 @@ Function111044:
pop bc pop bc
ld a, [$c991] ld a, [$c991]
ld l, a ld l, a
ld h, $0 ld h, 0
add hl, bc add hl, bc
ld c, l ld c, l
ld b, h ld b, h
@ -2488,7 +2488,7 @@ Function111044:
sub e sub e
dec a dec a
ld e, a ld e, a
ld d, $0 ld d, 0
add hl, de add hl, de
ld a, [$c829] ld a, [$c829]
ld e, a ld e, a
@ -2577,7 +2577,7 @@ Function11115f:
ld a, [$c993] ld a, [$c993]
sub e sub e
ld e, a ld e, a
ld d, $0 ld d, 0
ld hl, $c880 ld hl, $c880
add hl, de add hl, de
ld a, [$c829] ld a, [$c829]
@ -2616,7 +2616,7 @@ Function11115f:
ld a, [$c993] ld a, [$c993]
sub e sub e
ld e, a ld e, a
ld d, $0 ld d, 0
ld hl, $c880 ld hl, $c880
add hl, de add hl, de
ld a, [$c829] ld a, [$c829]
@ -3123,7 +3123,7 @@ Function11148c:
jr nz, .asm_111507 jr nz, .asm_111507
ld a, [$c993] ld a, [$c993]
ld c, a ld c, a
ld b, $0 ld b, 0
ld hl, $ca40 ld hl, $ca40
add hl, bc add hl, bc
ld a, [hli] ld a, [hli]
@ -3785,7 +3785,7 @@ Function1118bc:
Function1118c2: Function1118c2:
ldh a, [rSB] ldh a, [rSB]
ld c, a ld c, a
ld b, $0 ld b, 0
ld hl, wMobileSDK_PacketChecksum ld hl, wMobileSDK_PacketChecksum
ld a, [hli] ld a, [hli]
ld l, [hl] ld l, [hl]
@ -3919,7 +3919,7 @@ _Timer::
ld a, [$cb4c] ld a, [$cb4c]
add $a add $a
ld e, a ld e, a
ld d, $0 ld d, 0
ld a, MOBILE_COMMAND_TRANSFER_DATA | $80 ld a, MOBILE_COMMAND_TRANSFER_DATA | $80
ld [wMobileSDK_SendCommandID], a ld [wMobileSDK_SendCommandID], a
ld hl, wMobileSDK_PacketBuffer ld hl, wMobileSDK_PacketBuffer
@ -5223,7 +5223,7 @@ Function112271:
ld c, a ld c, a
sub $8 sub $8
ld e, a ld e, a
ld d, $0 ld d, 0
ld hl, $cb7a ld hl, $cb7a
add hl, de add hl, de
ld e, l ld e, l
@ -5294,7 +5294,7 @@ Function11234b:
ld a, [$cb4c] ld a, [$cb4c]
add $a add $a
ld e, a ld e, a
ld d, $0 ld d, 0
ld hl, wMobileSDK_PacketBuffer ld hl, wMobileSDK_PacketBuffer
ld a, b ld a, b
jp Function111f02 jp Function111f02
@ -5923,7 +5923,7 @@ Function11273a:
ld a, [$cbbc] ld a, [$cbbc]
add $a add $a
ld e, a ld e, a
ld d, $0 ld d, 0
ld a, $95 ld a, $95
ld hl, $cbb7 ld hl, $cbb7
jp Function111f02 jp Function111f02
@ -6049,7 +6049,7 @@ Function112807:
.asm_112830 .asm_112830
sub $5 sub $5
ld c, a ld c, a
ld b, $0 ld b, 0
ld hl, $ca41 ld hl, $ca41
add hl, bc add hl, bc
ld b, $5 ld b, $5
@ -6286,7 +6286,7 @@ Function11299c:
ld a, [$cbac] ld a, [$cbac]
add $a add $a
ld e, a ld e, a
ld d, $0 ld d, 0
ld a, $95 ld a, $95
ld hl, $cba7 ld hl, $cba7
jp Function111f02 jp Function111f02
@ -6740,7 +6740,7 @@ Function112bec:
push de push de
ld hl, $ca40 ld hl, $ca40
ld e, a ld e, a
ld d, $0 ld d, 0
add hl, de add hl, de
pop de pop de
ld b, c ld b, c
@ -6772,7 +6772,7 @@ Function112bec:
push de push de
ld hl, $ca40 ld hl, $ca40
ld e, a ld e, a
ld d, $0 ld d, 0
add hl, de add hl, de
pop de pop de
ld b, c ld b, c
@ -7604,7 +7604,7 @@ Function1131a9:
ld a, $ff ld a, $ff
sub b sub b
ld c, a ld c, a
ld b, $0 ld b, 0
ld hl, $ca40 ld hl, $ca40
add hl, bc add hl, bc
pop bc pop bc
@ -8291,7 +8291,7 @@ Function113626:
ld a, [$cb4c] ld a, [$cb4c]
add $a add $a
ld e, a ld e, a
ld d, $0 ld d, 0
ld a, $9a ld a, $9a
ld hl, wMobileSDK_PacketBuffer ld hl, wMobileSDK_PacketBuffer
jp Function111f02 jp Function111f02
@ -8745,7 +8745,7 @@ Function113909:
Function11391e: Function11391e:
and $f and $f
ld e, a ld e, a
ld d, $0 ld d, 0
ld hl, Unknown_113b70 ld hl, Unknown_113b70
add hl, de add hl, de
ld de, $cbf7 ld de, $cbf7

View File

@ -1184,7 +1184,7 @@ Function11c7bc:
push de push de
ld a, [hli] ld a, [hli]
ld e, a ld e, a
ld d, $0 ld d, 0
push hl push hl
ld a, [bc] ld a, [bc]
ld l, a ld l, a
@ -1215,7 +1215,7 @@ Function11c7bc:
ld hl, wc648 ld hl, wc648
ld a, [wcd22] ld a, [wcd22]
ld e, a ld e, a
ld d, $0 ld d, 0
add hl, de add hl, de
add hl, de add hl, de
ld a, [hli] ld a, [hli]
@ -1226,7 +1226,7 @@ Function11c7bc:
pop hl pop hl
ld a, [wcd26] ld a, [wcd26]
ld e, a ld e, a
ld d, $0 ld d, 0
add hl, de add hl, de
add hl, de add hl, de
ld a, [wcd26] ld a, [wcd26]
@ -1388,7 +1388,7 @@ Function11c8f6:
pop de pop de
ld a, [wcd20] ld a, [wcd20]
ld c, a ld c, a
ld b, $0 ld b, 0
ld hl, wcd36 ld hl, wcd36
add hl, bc add hl, bc
add hl, bc add hl, bc
@ -1402,7 +1402,7 @@ Function11c8f6:
ld a, [wMobileCommsJumptableIndex] ld a, [wMobileCommsJumptableIndex]
add [hl] add [hl]
ld c, a ld c, a
ld b, $0 ld b, 0
ld hl, wListPointer ld hl, wListPointer
add hl, bc add hl, bc
ld a, [hl] ld a, [hl]
@ -1411,7 +1411,7 @@ Function11c8f6:
ld hl, wc648 ld hl, wc648
ld a, [wcd22] ld a, [wcd22]
ld e, a ld e, a
ld d, $0 ld d, 0
add hl, de add hl, de
add hl, de add hl, de
ld a, [hli] ld a, [hli]
@ -1422,7 +1422,7 @@ Function11c8f6:
pop hl pop hl
ld a, [wcd26] ld a, [wcd26]
ld e, a ld e, a
ld d, $0 ld d, 0
add hl, de add hl, de
add hl, de add hl, de
ld a, [wMobileCommsJumptableIndex] ld a, [wMobileCommsJumptableIndex]
@ -1613,7 +1613,7 @@ Function11ca5e:
Function11ca6a: Function11ca6a:
ld hl, wcd36 ld hl, wcd36
ld c, a ld c, a
ld b, $0 ld b, 0
add hl, bc add hl, bc
add hl, bc add hl, bc
ld [hl], b ld [hl], b
@ -2363,7 +2363,7 @@ Function11d035:
.done_add_n_times .done_add_n_times
pop af pop af
ld c, a ld c, a
ld b, $0 ld b, 0
add hl, bc add hl, bc
push hl push hl
ld a, $79 ld a, $79
@ -2414,7 +2414,7 @@ Function11d035:
ld a, [de] ld a, [de]
dec a dec a
ld c, a ld c, a
ld b, $0 ld b, 0
add hl, bc add hl, bc
pop bc pop bc
inc de inc de
@ -2488,7 +2488,7 @@ AnimateEZChatCursor:
ld hl, .FramesetsIDs_Two ld hl, .FramesetsIDs_Two
ld a, [wcd22] ld a, [wcd22]
ld e, a ld e, a
ld d, $0 ld d, 0
add hl, de add hl, de
ld a, [hl] ld a, [hl]
call ReinitSpriteAnimFrame call ReinitSpriteAnimFrame
@ -2509,7 +2509,7 @@ AnimateEZChatCursor:
.load .load
push de push de
ld e, a ld e, a
ld d, $0 ld d, 0
add hl, de add hl, de
push hl push hl
pop de pop de

View File

@ -495,7 +495,7 @@ Function4ab1a:
dec a dec a
ld [wCurPartyMon], a ld [wCurPartyMon], a
ld c, a ld c, a
ld b, $0 ld b, 0
ld hl, wPartySpecies ld hl, wPartySpecies
add hl, bc add hl, bc
ld a, [hl] ld a, [hl]

View File

@ -1819,7 +1819,7 @@ Function89b97:
cp $ff cp $ff
ret z ret z
ld c, a ld c, a
ld b, $0 ld b, 0
.asm_89bbb .asm_89bbb
push hl push hl
ld a, [hli] ld a, [hli]
@ -2962,7 +2962,7 @@ Function8a3a2:
dec a dec a
ld hl, wd002 ld hl, wd002
ld e, a ld e, a
ld d, $0 ld d, 0
add hl, de add hl, de
ld a, [hl] ld a, [hl]
ld [wMenuSelection], a ld [wMenuSelection], a

View File

@ -1019,7 +1019,7 @@ Function8b99f:
ld hl, wd002 ld hl, wd002
dec a dec a
ld c, a ld c, a
ld b, $0 ld b, 0
add hl, bc add hl, bc
ld a, [hl] ld a, [hl]
cp $ff cp $ff

View File

@ -4964,7 +4964,7 @@ Function1022d0:
ld a, 30 ld a, 30
sub c sub c
ld c, a ld c, a
ld b, $03 ld b, 03
farcall AdvanceMobileInactivityTimerAndCheckExpired farcall AdvanceMobileInactivityTimerAndCheckExpired
jr c, .asm_1022f3 jr c, .asm_1022f3
xor a xor a

View File

@ -477,7 +477,7 @@ Function1143f3:
ld a, b ld a, b
add a add a
ld c, a ld c, a
ld b, $0 ld b, 0
add hl, bc add hl, bc
ld a, [hli] ld a, [hli]
ld h, [hl] ld h, [hl]

View File

@ -20,7 +20,7 @@ Function116567:
ld a, [wc3f6] ld a, [wc3f6]
sla a sla a
ld c, a ld c, a
ld b, $0 ld b, 0
add hl, bc add hl, bc
ld a, [hli] ld a, [hli]
cp $fe cp $fe
@ -392,7 +392,7 @@ asm_1167af:
ld a, [wc312] ld a, [wc312]
sla a sla a
ld c, a ld c, a
ld b, $0 ld b, 0
add hl, bc add hl, bc
ld a, [hli] ld a, [hli]
cp $ff cp $ff

View File

@ -103,7 +103,7 @@ Function115e2b:
ld a, [wc30b] ld a, [wc30b]
sla a sla a
ld c, a ld c, a
ld b, $0 ld b, 0
add hl, bc add hl, bc
ld a, [hli] ld a, [hli]
cp $ff cp $ff

View File

@ -190,7 +190,7 @@ Function117764_b_button:
dec a dec a
ld [wcd4a], a ld [wcd4a], a
ld e, a ld e, a
ld d, $0 ld d, 0
ld hl, $c708 ld hl, $c708
add hl, de add hl, de
xor a xor a
@ -300,7 +300,7 @@ Function117764_a_button:
call SimpleMultiply call SimpleMultiply
add b add b
ld c, a ld c, a
ld b, $0 ld b, 0
add hl, bc add hl, bc
ld a, [hl] ld a, [hl]
ld hl, $c708 ld hl, $c708
@ -765,7 +765,7 @@ Function117c89:
ld a, [de] ld a, [de]
inc de inc de
ld c, a ld c, a
ld b, $0 ld b, 0
add hl, bc add hl, bc
pop bc pop bc
dec bc dec bc

View File

@ -5580,7 +5580,7 @@ Function11acb7:
ld hl, TilemapPack_11ba44 ld hl, TilemapPack_11ba44
ld a, [wcd49] ld a, [wcd49]
ld c, a ld c, a
ld b, $0 ld b, 0
sla c sla c
rl b rl b
sla c sla c
@ -5606,7 +5606,7 @@ Function11acb7:
ld hl, TilemapPack_11bb7d ld hl, TilemapPack_11bb7d
ld a, [wcd4a] ld a, [wcd4a]
ld c, a ld c, a
ld b, $0 ld b, 0
sla c sla c
rl b rl b
sla c sla c
@ -6134,7 +6134,7 @@ Function11b099:
call Function11b236 call Function11b236
ld a, [wc7d0] ld a, [wc7d0]
ld e, a ld e, a
ld d, $0 ld d, 0
ld hl, wPokedexOrder ld hl, wPokedexOrder
add hl, de add hl, de
ld e, l ld e, l
@ -6400,7 +6400,7 @@ Function11b20b:
ld hl, wc7d0 ld hl, wc7d0
add [hl] add [hl]
ld e, a ld e, a
ld d, $0 ld d, 0
ld hl, $c6d0 ld hl, $c6d0
add hl, de add hl, de
ld a, [hl] ld a, [hl]

View File

@ -456,7 +456,7 @@ Function17a943:
dec a dec a
ld [$d08c], a ld [$d08c], a
ld c, a ld c, a
ld b, $0 ld b, 0
ld hl, wd1ea ld hl, wd1ea
add hl, bc add hl, bc
ld [hl], $ff ld [hl], $ff
@ -476,7 +476,7 @@ Function17a964:
cp $10 cp $10
jr nc, .asm_17a979 jr nc, .asm_17a979
ld c, a ld c, a
ld b, $0 ld b, 0
inc a inc a
ld [$d08c], a ld [$d08c], a
ld hl, wd1ea ld hl, wd1ea
@ -671,7 +671,7 @@ Function17aaa9:
ld a, $3 ld a, $3
call Function17aae3 call Function17aae3
ld c, a ld c, a
ld b, $0 ld b, 0
hlcoord 0, 0, wAttrmap hlcoord 0, 0, wAttrmap
add hl, bc add hl, bc
push hl push hl
@ -719,7 +719,7 @@ Function17aae3:
call AddNTimes call AddNTimes
pop af pop af
ld c, a ld c, a
ld b, $0 ld b, 0
add hl, bc add hl, bc
ld a, [hl] ld a, [hl]
ret ret

View File

@ -562,7 +562,7 @@ Function17d314:
ld a, [de] ld a, [de]
inc de inc de
ld c, a ld c, a
ld b, $0 ld b, 0
add hl, bc add hl, bc
pop bc pop bc
dec bc dec bc
@ -876,7 +876,7 @@ Function17d48d:
ld [wcd4a], a ld [wcd4a], a
ld a, [wcd42] ld a, [wcd42]
ld c, a ld c, a
ld b, $0 ld b, 0
add hl, bc add hl, bc
add hl, bc add hl, bc
ld a, l ld a, l
@ -1038,7 +1038,7 @@ Function17d6a1:
push hl push hl
ld a, [wcd6e] ld a, [wcd6e]
ld c, a ld c, a
ld b, $0 ld b, 0
ld a, $5 ld a, $5
call OpenSRAM call OpenSRAM
ld hl, $b1d3 ld hl, $b1d3
@ -1193,7 +1193,7 @@ Function17d7b4:
call IncCrashCheckPointer call IncCrashCheckPointer
ld a, [hli] ld a, [hli]
ld e, a ld e, a
ld d, $0 ld d, 0
call PlayMusic2 call PlayMusic2
call HlToCrashCheckPointer call HlToCrashCheckPointer
ret ret
@ -1202,7 +1202,7 @@ Function17d7c2:
call IncCrashCheckPointer call IncCrashCheckPointer
ld a, [hli] ld a, [hli]
ld e, a ld e, a
ld d, $0 ld d, 0
call PlaySFX call PlaySFX
call WaitSFX call WaitSFX
call HlToCrashCheckPointer call HlToCrashCheckPointer
@ -1213,7 +1213,7 @@ Function17d7d3:
ld a, [hli] ld a, [hli]
dec a dec a
ld e, a ld e, a
ld d, $0 ld d, 0
call PlayCry call PlayCry
call WaitSFX call WaitSFX
call HlToCrashCheckPointer call HlToCrashCheckPointer
@ -1580,7 +1580,7 @@ Function17da31:
ld a, c ld a, c
and $7f and $7f
ld c, a ld c, a
ld b, $0 ld b, 0
add hl, bc add hl, bc
ld a, [de] ld a, [de]
and [hl] and [hl]
@ -1928,7 +1928,7 @@ Function17dccf:
ld h, a ld h, a
ld a, [wcd2e] ld a, [wcd2e]
ld c, a ld c, a
ld b, $0 ld b, 0
add hl, bc add hl, bc
add hl, bc add hl, bc
ld a, [hli] ld a, [hli]
@ -1993,7 +1993,7 @@ Function17dd30:
ld d, a ld d, a
ld a, [hli] ld a, [hli]
ld c, a ld c, a
ld b, $0 ld b, 0
ld a, [hli] ld a, [hli]
push af push af
call HlToCrashCheckPointer call HlToCrashCheckPointer
@ -2010,7 +2010,7 @@ Function17dd49:
call CopyBytes call CopyBytes
ld a, [wc711] ld a, [wc711]
ld c, a ld c, a
ld b, $0 ld b, 0
call CopyBytes call CopyBytes
ld a, [wc70a] ld a, [wc70a]
cp $c0 cp $c0
@ -2031,7 +2031,7 @@ Function17dd49:
ld de, wc688 ld de, wc688
ld a, [wc711] ld a, [wc711]
ld c, a ld c, a
ld b, $0 ld b, 0
call CopyBytes call CopyBytes
ld a, [wc70a] ld a, [wc70a]
cp $c0 cp $c0
@ -2108,7 +2108,7 @@ Function17ddcd:
ld [wc710], a ld [wc710], a
ld a, [wc70b] ld a, [wc70b]
ld c, a ld c, a
ld b, $0 ld b, 0
ld a, [wc70a] ld a, [wc70a]
cp $c0 cp $c0
jr c, .asm_17de0c jr c, .asm_17de0c
@ -2151,7 +2151,7 @@ Function17de32:
call CopyBytes call CopyBytes
ld a, [wc710] ld a, [wc710]
ld c, a ld c, a
ld b, $0 ld b, 0
call CopyBytes call CopyBytes
ld a, $6 ld a, $6
call OpenSRAM call OpenSRAM
@ -2219,7 +2219,7 @@ Function17de91:
ld d, h ld d, h
ld a, [wc70a] ld a, [wc70a]
ld c, a ld c, a
ld b, $0 ld b, 0
ld hl, Unknown_17da8c ld hl, Unknown_17da8c
add hl, bc add hl, bc
ld a, [hl] ld a, [hl]
@ -2706,7 +2706,7 @@ Function17e1a1:
ld de, wc608 ld de, wc608
ld a, [wc70b] ld a, [wc70b]
ld c, a ld c, a
ld b, $0 ld b, 0
call CopyBytes call CopyBytes
ld a, [wc70a] ld a, [wc70a]
cp $c0 cp $c0
@ -2738,7 +2738,7 @@ Function17e1a1:
ld de, wc688 ld de, wc688
ld a, [wc70b] ld a, [wc70b]
ld c, a ld c, a
ld b, $0 ld b, 0
call CopyBytes call CopyBytes
ld a, [wc70e] ld a, [wc70e]
cp $c0 cp $c0
@ -3079,7 +3079,7 @@ Function17e451:
ld a, [wcd2f] ld a, [wcd2f]
ld [wcd2e], a ld [wcd2e], a
ld c, a ld c, a
ld b, $0 ld b, 0
add hl, bc add hl, bc
add hl, bc add hl, bc
push hl push hl
@ -3089,7 +3089,7 @@ Function17e451:
call AddNTimes call AddNTimes
ld a, [wCreditsTimer] ld a, [wCreditsTimer]
ld c, a ld c, a
ld b, $0 ld b, 0
add hl, bc add hl, bc
pop bc pop bc
ld a, [wMobileCommsJumptableIndex] ld a, [wMobileCommsJumptableIndex]
@ -3121,7 +3121,7 @@ Function17e451:
pop hl pop hl
ld a, [wcd26] ld a, [wcd26]
ld e, a ld e, a
ld d, $0 ld d, 0
add hl, de add hl, de
ld a, [wcd2e] ld a, [wcd2e]
inc a inc a
@ -3165,7 +3165,7 @@ Function17e4dd:
call AddNTimes call AddNTimes
ld a, [wcd28] ld a, [wcd28]
ld c, a ld c, a
ld b, $0 ld b, 0
add hl, bc add hl, bc
ld a, [wcd2f] ld a, [wcd2f]
and a and a
@ -3203,7 +3203,7 @@ Function17e51b:
call AddNTimes call AddNTimes
ld a, [wCreditsTimer] ld a, [wCreditsTimer]
ld c, a ld c, a
ld b, $0 ld b, 0
add hl, bc add hl, bc
ld a, [wMobileCommsJumptableIndex] ld a, [wMobileCommsJumptableIndex]
ld c, a ld c, a
@ -3214,7 +3214,7 @@ Function17e51b:
push hl push hl
ld a, [wcd4f] ld a, [wcd4f]
ld c, a ld c, a
ld b, $0 ld b, 0
ld a, $7f ld a, $7f
call ByteFill call ByteFill
pop hl pop hl
@ -3249,7 +3249,7 @@ Function17e571:
call AddNTimes call AddNTimes
ld a, [wCreditsTimer] ld a, [wCreditsTimer]
ld c, a ld c, a
ld b, $0 ld b, 0
add hl, bc add hl, bc
dec hl dec hl
push hl push hl
@ -3268,7 +3268,7 @@ Function17e571:
ld a, [wcd26] ld a, [wcd26]
call SimpleMultiply call SimpleMultiply
ld c, a ld c, a
ld b, $0 ld b, 0
add hl, bc add hl, bc
pop bc pop bc
add hl, bc add hl, bc
@ -3290,12 +3290,12 @@ Function17e5af:
add hl, bc add hl, bc
ld a, [wMobileInactivityTimerSeconds] ld a, [wMobileInactivityTimerSeconds]
ld c, a ld c, a
ld b, $0 ld b, 0
ld a, [wMobileInactivityTimerFrames] ld a, [wMobileInactivityTimerFrames]
call Function17e600 call Function17e600
ld a, [wcd2e] ld a, [wcd2e]
ld c, a ld c, a
ld b, $0 ld b, 0
ld a, [wcd4d] ld a, [wcd4d]
ld l, a ld l, a
ld a, [wcd4e] ld a, [wcd4e]
@ -3357,7 +3357,7 @@ Function17e613:
.asm_17e626 .asm_17e626
pop af pop af
ld c, a ld c, a
ld b, $0 ld b, 0
add hl, bc add hl, bc
push hl push hl
ld a, [wcd53] ld a, [wcd53]
@ -3459,7 +3459,7 @@ Function17e691:
.asm_17e6a5 .asm_17e6a5
pop af pop af
ld c, a ld c, a
ld b, $0 ld b, 0
add hl, bc add hl, bc
ld a, [de] ld a, [de]
dec de dec de
@ -3607,7 +3607,7 @@ Function17f081:
ld l, c ld l, c
ld h, b ld h, b
ld c, a ld c, a
ld b, $0 ld b, 0
add hl, bc add hl, bc
ld a, [de] ld a, [de]
cp "@" cp "@"
@ -3692,7 +3692,7 @@ Function17f0f8:
ld l, c ld l, c
ld h, b ld h, b
ld c, a ld c, a
ld b, $0 ld b, 0
add hl, bc add hl, bc
ld a, [de] ld a, [de]
cp "@" cp "@"
@ -3721,7 +3721,7 @@ Function17f0f8:
ld de, wc608 ld de, wc608
ld a, [wcd56] ld a, [wcd56]
ld c, a ld c, a
ld b, $0 ld b, 0
call CopyBytes call CopyBytes
ld a, "@" ld a, "@"
ld [de], a ld [de], a
@ -3789,7 +3789,7 @@ Function17f181:
ld l, c ld l, c
ld h, b ld h, b
ld c, a ld c, a
ld b, $0 ld b, 0
add hl, bc add hl, bc
ld a, [de] ld a, [de]
cp "@" cp "@"
@ -3843,7 +3843,7 @@ Function17f1d0:
ld l, c ld l, c
ld h, b ld h, b
ld c, a ld c, a
ld b, $0 ld b, 0
add hl, bc add hl, bc
ld a, [de] ld a, [de]
cp "@" cp "@"
@ -3899,7 +3899,7 @@ Function17f220:
ld l, c ld l, c
ld h, b ld h, b
ld c, a ld c, a
ld b, $0 ld b, 0
add hl, bc add hl, bc
ld a, [de] ld a, [de]
cp "@" cp "@"
@ -3962,7 +3962,7 @@ Function17f27b:
ld l, c ld l, c
ld h, b ld h, b
ld c, a ld c, a
ld b, $0 ld b, 0
add hl, bc add hl, bc
ld a, [de] ld a, [de]
cp "@" cp "@"
@ -4183,7 +4183,7 @@ Function17f3f0:
ld d, a ld d, a
ld a, [de] ld a, [de]
ld c, a ld c, a
ld b, $0 ld b, 0
add hl, bc add hl, bc
add hl, bc add hl, bc
ld a, [hli] ld a, [hli]
@ -4198,7 +4198,7 @@ Function17f3f0:
call PlaceString call PlaceString
pop af pop af
ld e, a ld e, a
ld d, $0 ld d, 0
pop hl pop hl
add hl, de add hl, de
add hl, de add hl, de
@ -4309,7 +4309,7 @@ Function17f44f:
ld de, wc608 ld de, wc608
ld a, [wcd57] ld a, [wcd57]
ld c, a ld c, a
ld b, $0 ld b, 0
call CopyBytes call CopyBytes
ld a, [wcd56] ld a, [wcd56]
cp $c0 cp $c0
@ -4389,7 +4389,7 @@ Function17f50f:
and a and a
jr z, .asm_17f519 jr z, .asm_17f519
ld c, a ld c, a
ld b, $0 ld b, 0
add hl, bc add hl, bc
ld c, l ld c, l
ld b, h ld b, h
@ -4562,7 +4562,7 @@ Function17f5e4:
cp $24 cp $24
jr nc, .asm_17f679 jr nc, .asm_17f679
ld e, a ld e, a
ld d, $0 ld d, 0
ld hl, MobileErrorCodeTable ld hl, MobileErrorCodeTable
add hl, de add hl, de
add hl, de add hl, de