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 hl
ld l, a
ld h, $0
ld h, 0
rept 4
add hl, hl
endr

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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