From 17894e5f39520db2f21452d056c4683915086d8d Mon Sep 17 00:00:00 2001 From: Rangi Date: Mon, 9 Nov 2020 15:17:03 -0500 Subject: [PATCH] Replace $0 with 0 for "ld l, a / ld h, 0" idiom --- engine/battle_anims/anim_commands.asm | 2 +- engine/battle_anims/bg_effects.asm | 6 +- engine/battle_anims/functions.asm | 10 ++-- engine/events/kurt.asm | 6 +- engine/events/map_name_sign.asm | 2 +- engine/games/card_flip.asm | 2 +- engine/games/memory_game.asm | 4 +- engine/games/slot_machine.asm | 2 +- engine/games/unown_puzzle.asm | 4 +- engine/gfx/cgb_layouts.asm | 8 +-- engine/gfx/color.asm | 8 +-- engine/gfx/pic_animation.asm | 6 +- engine/items/items.asm | 2 +- engine/link/link.asm | 2 +- engine/menus/scrolling_menu.asm | 4 +- engine/movie/intro.asm | 10 ++-- engine/movie/title.asm | 2 +- engine/overworld/scripting.asm | 2 +- engine/phone/phone.asm | 2 +- engine/pokedex/pokedex.asm | 4 +- engine/pokegear/pokegear.asm | 2 +- engine/pokemon/bills_pc.asm | 8 +-- engine/pokemon/mon_menu.asm | 8 +-- engine/pokemon/party_menu.asm | 6 +- engine/pokemon/switchpartymons.asm | 4 +- engine/printer/printer.asm | 2 +- engine/rtc/reset_password.asm | 2 +- home/map.asm | 8 +-- home/menu.asm | 4 +- lib/mobile/main.asm | 44 +++++++-------- mobile/fixed_words.asm | 24 ++++---- mobile/mobile_12_2.asm | 2 +- mobile/mobile_22.asm | 4 +- mobile/mobile_22_2.asm | 2 +- mobile/mobile_40.asm | 2 +- mobile/mobile_45.asm | 2 +- mobile/mobile_45_2.asm | 4 +- mobile/mobile_45_sprite_engine.asm | 2 +- mobile/mobile_45_stadium.asm | 6 +- mobile/mobile_46.asm | 8 +-- mobile/mobile_5e.asm | 8 +-- mobile/mobile_5f.asm | 80 +++++++++++++-------------- 42 files changed, 160 insertions(+), 160 deletions(-) diff --git a/engine/battle_anims/anim_commands.asm b/engine/battle_anims/anim_commands.asm index d9319b699..2c8ff64dd 100644 --- a/engine/battle_anims/anim_commands.asm +++ b/engine/battle_anims/anim_commands.asm @@ -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 diff --git a/engine/battle_anims/bg_effects.asm b/engine/battle_anims/bg_effects.asm index 782ace2e5..d86757b95 100644 --- a/engine/battle_anims/bg_effects.asm +++ b/engine/battle_anims/bg_effects.asm @@ -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: diff --git a/engine/battle_anims/functions.asm b/engine/battle_anims/functions.asm index 5a04a5b65..af24bf6c0 100644 --- a/engine/battle_anims/functions.asm +++ b/engine/battle_anims/functions.asm @@ -778,7 +778,7 @@ BattleAnimFunction_FireBlast: call DeinitBattleAnimation ret -.one +.one ; Flame that moves upward ld hl, BATTLEANIMSTRUCT_YOFFSET add hl, bc @@ -2145,13 +2145,13 @@ BattleAnimFunction_Egg: call BattleAnim_IncAnonJumptableIndex ; jumps to three ret -.egg_bomb_done +.egg_bomb_done ; Increases jumptable index twice to four call BattleAnim_IncAnonJumptableIndex inc [hl] ret -.three +.three ; Waits in place ld hl, BATTLEANIMSTRUCT_VAR2 add hl, bc @@ -3387,7 +3387,7 @@ BattleAnimFunction_SkyAttack: call DeinitBattleAnimation ret -.SkyAttack_CyclePalette: +.SkyAttack_CyclePalette: ; Cycles wOBP0 pallete ld hl, BATTLEANIMSTRUCT_VAR2 add hl, bc @@ -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 diff --git a/engine/events/kurt.asm b/engine/events/kurt.asm index ab8dd3ca0..c99bc5d8c 100644 --- a/engine/events/kurt.asm +++ b/engine/events/kurt.asm @@ -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 diff --git a/engine/events/map_name_sign.asm b/engine/events/map_name_sign.asm index d674eebb1..ec39619f3 100644 --- a/engine/events/map_name_sign.asm +++ b/engine/events/map_name_sign.asm @@ -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 diff --git a/engine/games/card_flip.asm b/engine/games/card_flip.asm index b797f58ce..2b4c0f0b2 100644 --- a/engine/games/card_flip.asm +++ b/engine/games/card_flip.asm @@ -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 diff --git a/engine/games/memory_game.asm b/engine/games/memory_game.asm index 10a0b24ed..8be4e51c4 100644 --- a/engine/games/memory_game.asm +++ b/engine/games/memory_game.asm @@ -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 diff --git a/engine/games/slot_machine.asm b/engine/games/slot_machine.asm index 8962f4424..117a5d459 100644 --- a/engine/games/slot_machine.asm +++ b/engine/games/slot_machine.asm @@ -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] diff --git a/engine/games/unown_puzzle.asm b/engine/games/unown_puzzle.asm index c5db774b8..daf987380 100644 --- a/engine/games/unown_puzzle.asm +++ b/engine/games/unown_puzzle.asm @@ -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 diff --git a/engine/gfx/cgb_layouts.asm b/engine/gfx/cgb_layouts.asm index ee4e2caeb..95f53b160 100644 --- a/engine/gfx/cgb_layouts.asm +++ b/engine/gfx/cgb_layouts.asm @@ -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 diff --git a/engine/gfx/color.asm b/engine/gfx/color.asm index a0de280af..7e7f075a0 100644 --- a/engine/gfx/color.asm +++ b/engine/gfx/color.asm @@ -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 diff --git a/engine/gfx/pic_animation.asm b/engine/gfx/pic_animation.asm index 90bb06620..36faf9b7c 100644 --- a/engine/gfx/pic_animation.asm +++ b/engine/gfx/pic_animation.asm @@ -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] diff --git a/engine/items/items.asm b/engine/items/items.asm index 42381b411..cfdd4a4c5 100644 --- a/engine/items/items.asm +++ b/engine/items/items.asm @@ -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] diff --git a/engine/link/link.asm b/engine/link/link.asm index d9fb40d01..ddda92dbe 100644 --- a/engine/link/link.asm +++ b/engine/link/link.asm @@ -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 diff --git a/engine/menus/scrolling_menu.asm b/engine/menus/scrolling_menu.asm index d23b4d1e3..6a8d6fd4e 100644 --- a/engine/menus/scrolling_menu.asm +++ b/engine/menus/scrolling_menu.asm @@ -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] diff --git a/engine/movie/intro.asm b/engine/movie/intro.asm index 6e2ea8529..f93c10c8e 100644 --- a/engine/movie/intro.asm +++ b/engine/movie/intro.asm @@ -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] diff --git a/engine/movie/title.asm b/engine/movie/title.asm index ad06343c9..91ac1f8c2 100644 --- a/engine/movie/title.asm +++ b/engine/movie/title.asm @@ -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] diff --git a/engine/overworld/scripting.asm b/engine/overworld/scripting.asm index d9878269b..a8b95d3b2 100644 --- a/engine/overworld/scripting.asm +++ b/engine/overworld/scripting.asm @@ -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 diff --git a/engine/phone/phone.asm b/engine/phone/phone.asm index 08ef07280..27acc48f1 100644 --- a/engine/phone/phone.asm +++ b/engine/phone/phone.asm @@ -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 diff --git a/engine/pokedex/pokedex.asm b/engine/pokedex/pokedex.asm index 10cd6ef8d..341730829 100644 --- a/engine/pokedex/pokedex.asm +++ b/engine/pokedex/pokedex.asm @@ -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] diff --git a/engine/pokegear/pokegear.asm b/engine/pokegear/pokegear.asm index ad06ad059..ba742723e 100644 --- a/engine/pokegear/pokegear.asm +++ b/engine/pokegear/pokegear.asm @@ -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 diff --git a/engine/pokemon/bills_pc.asm b/engine/pokemon/bills_pc.asm index 2c5145b9f..cdb513242 100644 --- a/engine/pokemon/bills_pc.asm +++ b/engine/pokemon/bills_pc.asm @@ -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] diff --git a/engine/pokemon/mon_menu.asm b/engine/pokemon/mon_menu.asm index 135a26e46..70aa2f52e 100644 --- a/engine/pokemon/mon_menu.asm +++ b/engine/pokemon/mon_menu.asm @@ -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 diff --git a/engine/pokemon/party_menu.asm b/engine/pokemon/party_menu.asm index e318a0430..9cb2fa159 100644 --- a/engine/pokemon/party_menu.asm +++ b/engine/pokemon/party_menu.asm @@ -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] diff --git a/engine/pokemon/switchpartymons.asm b/engine/pokemon/switchpartymons.asm index 512332fcc..1ec3cf698 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 diff --git a/engine/printer/printer.asm b/engine/printer/printer.asm index e8e93bf2d..761053621 100644 --- a/engine/printer/printer.asm +++ b/engine/printer/printer.asm @@ -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] diff --git a/engine/rtc/reset_password.asm b/engine/rtc/reset_password.asm index 49c9a122e..585778403 100644 --- a/engine/rtc/reset_password.asm +++ b/engine/rtc/reset_password.asm @@ -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 diff --git a/home/map.asm b/home/map.asm index e329f6b6e..b315928b8 100644 --- a/home/map.asm +++ b/home/map.asm @@ -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] diff --git a/home/menu.asm b/home/menu.asm index abbe45d7a..e664550aa 100644 --- a/home/menu.asm +++ b/home/menu.asm @@ -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] diff --git a/lib/mobile/main.asm b/lib/mobile/main.asm index 770cc1c3e..97412baa1 100644 --- a/lib/mobile/main.asm +++ b/lib/mobile/main.asm @@ -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 diff --git a/mobile/fixed_words.asm b/mobile/fixed_words.asm index 1243a4dbe..18e097b98 100644 --- a/mobile/fixed_words.asm +++ b/mobile/fixed_words.asm @@ -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 diff --git a/mobile/mobile_12_2.asm b/mobile/mobile_12_2.asm index 88b7d0d72..64f52f92a 100644 --- a/mobile/mobile_12_2.asm +++ b/mobile/mobile_12_2.asm @@ -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] diff --git a/mobile/mobile_22.asm b/mobile/mobile_22.asm index e4cde1665..5a60fae14 100644 --- a/mobile/mobile_22.asm +++ b/mobile/mobile_22.asm @@ -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 diff --git a/mobile/mobile_22_2.asm b/mobile/mobile_22_2.asm index 247d582ad..ac0a1c6d5 100644 --- a/mobile/mobile_22_2.asm +++ b/mobile/mobile_22_2.asm @@ -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 diff --git a/mobile/mobile_40.asm b/mobile/mobile_40.asm index 7ef912e6f..dd04b591a 100644 --- a/mobile/mobile_40.asm +++ b/mobile/mobile_40.asm @@ -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 diff --git a/mobile/mobile_45.asm b/mobile/mobile_45.asm index 9bfd2cf7b..2694a50b2 100644 --- a/mobile/mobile_45.asm +++ b/mobile/mobile_45.asm @@ -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] diff --git a/mobile/mobile_45_2.asm b/mobile/mobile_45_2.asm index 4e227a897..912a453ec 100644 --- a/mobile/mobile_45_2.asm +++ b/mobile/mobile_45_2.asm @@ -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 diff --git a/mobile/mobile_45_sprite_engine.asm b/mobile/mobile_45_sprite_engine.asm index fce800e59..0d04e129c 100644 --- a/mobile/mobile_45_sprite_engine.asm +++ b/mobile/mobile_45_sprite_engine.asm @@ -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 diff --git a/mobile/mobile_45_stadium.asm b/mobile/mobile_45_stadium.asm index a2760c10a..2b7f522ac 100644 --- a/mobile/mobile_45_stadium.asm +++ b/mobile/mobile_45_stadium.asm @@ -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 diff --git a/mobile/mobile_46.asm b/mobile/mobile_46.asm index 01dde10ee..317e69553 100644 --- a/mobile/mobile_46.asm +++ b/mobile/mobile_46.asm @@ -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] diff --git a/mobile/mobile_5e.asm b/mobile/mobile_5e.asm index b553dd104..38d934f5e 100644 --- a/mobile/mobile_5e.asm +++ b/mobile/mobile_5e.asm @@ -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 diff --git a/mobile/mobile_5f.asm b/mobile/mobile_5f.asm index c32b4255b..f6f372eb2 100644 --- a/mobile/mobile_5f.asm +++ b/mobile/mobile_5f.asm @@ -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