shithub: pokecrystal

Download patch

ref: 17894e5f39520db2f21452d056c4683915086d8d
parent: 03e149e55933cb9725a5785f21136f9fc3f3cade
author: Rangi <remy.oukaour+rangi42@gmail.com>
date: Mon Nov 9 10:17:03 EST 2020

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

--- a/engine/battle_anims/anim_commands.asm
+++ b/engine/battle_anims/anim_commands.asm
@@ -679,7 +679,7 @@
 	push bc
 	push hl
 	ld l, a
-	ld h, $0
+	ld h, 0
 rept 4
 	add hl, hl
 endr
--- a/engine/battle_anims/bg_effects.asm
+++ b/engine/battle_anims/bg_effects.asm
@@ -1990,7 +1990,7 @@
 	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 @@
 	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 @@
 	ld a, [wBattleSineWaveTempProgress]
 	add e
 	ld e, a
-	ld d, $0
+	ld d, 0
 	ret
 
 BattleBGEffect_WavyScreenFX:
--- a/engine/battle_anims/functions.asm
+++ b/engine/battle_anims/functions.asm
@@ -778,7 +778,7 @@
 	call DeinitBattleAnimation
 	ret
 
-.one 
+.one
 	; Flame that moves upward
 	ld hl, BATTLEANIMSTRUCT_YOFFSET
 	add hl, bc
@@ -2145,13 +2145,13 @@
 	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 @@
 	call DeinitBattleAnimation
 	ret
 
-.SkyAttack_CyclePalette: 
+.SkyAttack_CyclePalette:
 ; Cycles wOBP0 pallete
 	ld hl, BATTLEANIMSTRUCT_VAR2
 	add hl, bc
@@ -3396,7 +3396,7 @@
 	inc [hl]
 	srl a
 	ld e, a
-	ld d, $0
+	ld d, 0
 	ldh a, [hSGB]
 	and a
 	jr nz, .sgb
--- a/engine/events/kurt.asm
+++ b/engine/events/kurt.asm
@@ -176,7 +176,7 @@
 	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 @@
 	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 @@
 	ld hl, wNumItems
 	ld a, [wCurItemQuantity]
 	ld c, a
-	ld b, $0
+	ld b, 0
 	inc hl
 	add hl, bc
 	add hl, bc
--- a/engine/events/map_name_sign.asm
+++ b/engine/events/map_name_sign.asm
@@ -147,7 +147,7 @@
 	ld a, SCREEN_WIDTH
 	sub c
 	srl a
-	ld b, $0
+	ld b, 0
 	ld c, a
 	hlcoord 0, 2
 	add hl, bc
--- a/engine/games/card_flip.asm
+++ b/engine/games/card_flip.asm
@@ -339,7 +339,7 @@
 	cp CARDFLIP_DECK_SIZE
 	jr nc, .loop
 	ld l, a
-	ld h, $0
+	ld h, 0
 	add hl, de
 	ld a, [hl]
 	and a
--- a/engine/games/memory_game.asm
+++ b/engine/games/memory_game.asm
@@ -216,7 +216,7 @@
 	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 @@
 
 	ld a, [wMemoryGameCard1Location]
 	ld e, a
-	ld d, $0
+	ld d, 0
 	ld hl, wMemoryGameCards
 	add hl, de
 	ld [hl], -1
--- a/engine/games/slot_machine.asm
+++ b/engine/games/slot_machine.asm
@@ -551,7 +551,7 @@
 	dec a
 	and $f
 	ld e, a
-	ld d, $0
+	ld d, 0
 	ld hl, REEL_TILEMAP_ADDR
 	add hl, bc
 	ld a, [hli]
--- a/engine/games/unown_puzzle.asm
+++ b/engine/games/unown_puzzle.asm
@@ -97,7 +97,7 @@
 	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 @@
 	ld hl, wPuzzlePieces
 	ld a, [wUnownPuzzleCursorPosition]
 	ld e, a
-	ld d, $0
+	ld d, 0
 	add hl, de
 	ld a, [hl]
 	ret
--- a/engine/gfx/cgb_layouts.asm
+++ b/engine/gfx/cgb_layouts.asm
@@ -86,7 +86,7 @@
 	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 @@
 	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 @@
 	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 @@
 .found_top
 	ld a, [wMenuBorderLeftCoord]
 	ld e, a
-	ld d, $0
+	ld d, 0
 	add hl, de
 	ld a, [wMenuBorderTopCoord]
 	ld b, a
--- a/engine/gfx/color.asm
+++ b/engine/gfx/color.asm
@@ -111,7 +111,7 @@
 	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 @@
 
 GetPredefPal:
 	ld l, a
-	ld h, $0
+	ld h, 0
 	add hl, hl
 	add hl, hl
 	add hl, hl
@@ -630,7 +630,7 @@
 	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 @@
 
 _GetMonPalettePointer:
 	ld l, a
-	ld h, $0
+	ld h, 0
 	add hl, hl
 	add hl, hl
 	add hl, hl
--- a/engine/gfx/pic_animation.asm
+++ b/engine/gfx/pic_animation.asm
@@ -413,7 +413,7 @@
 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 @@
 	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 @@
 	ld a, [wPokeAnimCommand]
 	dec a
 	ld c, a
-	ld b, $0
+	ld b, 0
 	ld hl, wPokeAnimFramesAddr
 	ld a, [hli]
 	ld h, [hl]
--- a/engine/items/items.asm
+++ b/engine/items/items.asm
@@ -240,7 +240,7 @@
 	cp c
 	jr nc, .ok ; memory
 	ld c, a
-	ld b, $0
+	ld b, 0
 	add hl, bc
 	add hl, bc
 	ld a, [wCurItem]
--- a/engine/link/link.asm
+++ b/engine/link/link.asm
@@ -343,7 +343,7 @@
 	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
--- a/engine/menus/scrolling_menu.asm
+++ b/engine/menus/scrolling_menu.asm
@@ -425,7 +425,7 @@
 	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 @@
 	ld a, [wMenuScrollPosition]
 	add e
 	ld e, a
-	ld d, $0
+	ld d, 0
 	ld hl, wMenuData_ItemsPointerAddr
 	ld a, [hli]
 	ld h, [hl]
--- a/engine/movie/intro.asm
+++ b/engine/movie/intro.asm
@@ -1232,7 +1232,7 @@
 	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 @@
 .okay
 
 	ld c, a
-	ld b, $0
+	ld b, 0
 	ldh a, [rSVBK]
 	push af
 	ld a, BANK(wBGPals2)
@@ -1397,7 +1397,7 @@
 	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 @@
 	ld a, [wIntroSceneTimer]
 	add a
 	ld c, a
-	ld b, $0
+	ld b, 0
 
 	ldh a, [rSVBK]
 	push af
@@ -1530,7 +1530,7 @@
 	and $c
 	srl a
 	ld e, a
-	ld d, $0
+	ld d, 0
 	ld hl, .RustlingGrassPointers
 	add hl, de
 	ld a, [hli]
--- a/engine/movie/title.asm
+++ b/engine/movie/title.asm
@@ -229,7 +229,7 @@
 	sla a
 	swap a
 	ld e, a
-	ld d, $0
+	ld d, 0
 	ld hl, .Frames
 	add hl, de
 	ld d, [hl]
--- a/engine/overworld/scripting.asm
+++ b/engine/overworld/scripting.asm
@@ -951,7 +951,7 @@
 Script_variablesprite:
 	call GetScriptByte
 	ld e, a
-	ld d, $0
+	ld d, 0
 	ld hl, wVariableSprites
 	add hl, de
 	call GetScriptByte
--- a/engine/phone/phone.asm
+++ b/engine/phone/phone.asm
@@ -223,7 +223,7 @@
 .different_map
 	ld a, [wNumAvailableCallers]
 	ld c, a
-	ld b, $0
+	ld b, 0
 	inc a
 	ld [wNumAvailableCallers], a
 	ld hl, wAvailableCallers
--- a/engine/pokedex/pokedex.asm
+++ b/engine/pokedex/pokedex.asm
@@ -1482,7 +1482,7 @@
 ; 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 @@
 	ld hl, wDexListingScrollOffset
 	add [hl]
 	ld e, a
-	ld d, $0
+	ld d, 0
 	ld hl, wPokedexOrder
 	add hl, de
 	ld a, [hl]
--- a/engine/pokegear/pokegear.asm
+++ b/engine/pokegear/pokegear.asm
@@ -2709,7 +2709,7 @@
 	ld a, [wCurPartyMon]
 	ld hl, wPartySpecies
 	ld e, a
-	ld d, $0
+	ld d, 0
 	add hl, de
 	ld a, [hl]
 	ld [wTempIconSpecies], a
--- a/engine/pokemon/bills_pc.asm
+++ b/engine/pokemon/bills_pc.asm
@@ -1114,7 +1114,7 @@
 	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 @@
 	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 @@
 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_Jumptable:
 	ld e, a
-	ld d, $0
+	ld d, 0
 	add hl, de
 	add hl, de
 	ld a, [hli]
--- a/engine/pokemon/mon_menu.asm
+++ b/engine/pokemon/mon_menu.asm
@@ -1052,7 +1052,7 @@
 	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 @@
 	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 @@
 	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 @@
 	ld a, [wMenuCursorY]
 	dec a
 	ld c, a
-	ld b, $0
+	ld b, 0
 	add hl, bc
 	ld a, [hl]
 	ld [wCurSpecies], a
--- a/engine/pokemon/party_menu.asm
+++ b/engine/pokemon/party_menu.asm
@@ -135,7 +135,7 @@
 	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 @@
 	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 @@
 	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]
--- a/engine/pokemon/switchpartymons.asm
+++ b/engine/pokemon/switchpartymons.asm
@@ -46,13 +46,13 @@
 	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
--- a/engine/printer/printer.asm
+++ b/engine/printer/printer.asm
@@ -852,7 +852,7 @@
 Printer_GetBoxMonSpecies:
 	push hl
 	ld e, a
-	ld d, $0
+	ld d, 0
 	ld a, [wAddrOfBoxToPrint]
 	ld l, a
 	ld a, [wAddrOfBoxToPrint + 1]
--- a/engine/rtc/reset_password.asm
+++ b/engine/rtc/reset_password.asm
@@ -185,7 +185,7 @@
 .getcurrentdigit
 	ld a, [wStringBuffer2 + 5]
 	ld e, a
-	ld d, $0
+	ld d, 0
 	ld hl, wStringBuffer2
 	add hl, de
 	ret
--- a/home/map.asm
+++ b/home/map.asm
@@ -1126,7 +1126,7 @@
 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 @@
 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 @@
 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 @@
 	and a
 	jr z, .nope
 	ld l, a
-	ld h, $0
+	ld h, 0
 	add hl, hl
 	add hl, hl
 	ld a, [wTilesetCollisionAddress]
--- a/home/menu.asm
+++ b/home/menu.asm
@@ -679,7 +679,7 @@
 	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 @@
 
 GetMenuDataPointerTableEntry::
 	ld e, a
-	ld d, $0
+	ld d, 0
 	ld hl, wMenuDataPointerTableAddr
 	ld a, [hli]
 	ld h, [hl]
--- a/lib/mobile/main.asm
+++ b/lib/mobile/main.asm
@@ -1660,7 +1660,7 @@
 	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 @@
 	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 @@
 	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 @@
 	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 @@
 	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 @@
 	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 @@
 	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 @@
 	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 @@
 	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 @@
 	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 @@
 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 @@
 	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 @@
 	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 @@
 	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 @@
 	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 @@
 .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 @@
 	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 @@
 	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 @@
 	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 @@
 	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 @@
 	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 @@
 Function11391e:
 	and $f
 	ld e, a
-	ld d, $0
+	ld d, 0
 	ld hl, Unknown_113b70
 	add hl, de
 	ld de, $cbf7
--- a/mobile/fixed_words.asm
+++ b/mobile/fixed_words.asm
@@ -1184,7 +1184,7 @@
 	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 @@
 	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 @@
 	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 @@
 	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 @@
 	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 @@
 	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 @@
 	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 @@
 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 @@
 .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 @@
 	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 @@
 	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 @@
 .load
 	push de
 	ld e, a
-	ld d, $0
+	ld d, 0
 	add hl, de
 	push hl
 	pop de
--- a/mobile/mobile_12_2.asm
+++ b/mobile/mobile_12_2.asm
@@ -495,7 +495,7 @@
 	dec a
 	ld [wCurPartyMon], a
 	ld c, a
-	ld b, $0
+	ld b, 0
 	ld hl, wPartySpecies
 	add hl, bc
 	ld a, [hl]
--- a/mobile/mobile_22.asm
+++ b/mobile/mobile_22.asm
@@ -1819,7 +1819,7 @@
 	cp $ff
 	ret z
 	ld c, a
-	ld b, $0
+	ld b, 0
 .asm_89bbb
 	push hl
 	ld a, [hli]
@@ -2962,7 +2962,7 @@
 	dec a
 	ld hl, wd002
 	ld e, a
-	ld d, $0
+	ld d, 0
 	add hl, de
 	ld a, [hl]
 	ld [wMenuSelection], a
--- a/mobile/mobile_22_2.asm
+++ b/mobile/mobile_22_2.asm
@@ -1019,7 +1019,7 @@
 	ld hl, wd002
 	dec a
 	ld c, a
-	ld b, $0
+	ld b, 0
 	add hl, bc
 	ld a, [hl]
 	cp $ff
--- a/mobile/mobile_40.asm
+++ b/mobile/mobile_40.asm
@@ -4964,7 +4964,7 @@
 	ld a, 30
 	sub c
 	ld c, a
-	ld b, $03
+	ld b, 03
 	farcall AdvanceMobileInactivityTimerAndCheckExpired
 	jr c, .asm_1022f3
 	xor a
--- a/mobile/mobile_45.asm
+++ b/mobile/mobile_45.asm
@@ -477,7 +477,7 @@
 	ld a, b
 	add a
 	ld c, a
-	ld b, $0
+	ld b, 0
 	add hl, bc
 	ld a, [hli]
 	ld h, [hl]
--- a/mobile/mobile_45_2.asm
+++ b/mobile/mobile_45_2.asm
@@ -20,7 +20,7 @@
 	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 @@
 	ld a, [wc312]
 	sla a
 	ld c, a
-	ld b, $0
+	ld b, 0
 	add hl, bc
 	ld a, [hli]
 	cp $ff
--- a/mobile/mobile_45_sprite_engine.asm
+++ b/mobile/mobile_45_sprite_engine.asm
@@ -103,7 +103,7 @@
 	ld a, [wc30b]
 	sla a
 	ld c, a
-	ld b, $0
+	ld b, 0
 	add hl, bc
 	ld a, [hli]
 	cp $ff
--- a/mobile/mobile_45_stadium.asm
+++ b/mobile/mobile_45_stadium.asm
@@ -190,7 +190,7 @@
 	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 @@
 	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 @@
 	ld a, [de]
 	inc de
 	ld c, a
-	ld b, $0
+	ld b, 0
 	add hl, bc
 	pop bc
 	dec bc
--- a/mobile/mobile_46.asm
+++ b/mobile/mobile_46.asm
@@ -5580,7 +5580,7 @@
 	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 @@
 	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 @@
 	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 @@
 	ld hl, wc7d0
 	add [hl]
 	ld e, a
-	ld d, $0
+	ld d, 0
 	ld hl, $c6d0
 	add hl, de
 	ld a, [hl]
--- a/mobile/mobile_5e.asm
+++ b/mobile/mobile_5e.asm
@@ -456,7 +456,7 @@
 	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 @@
 	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 @@
 	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 @@
 	call AddNTimes
 	pop af
 	ld c, a
-	ld b, $0
+	ld b, 0
 	add hl, bc
 	ld a, [hl]
 	ret
--- a/mobile/mobile_5f.asm
+++ b/mobile/mobile_5f.asm
@@ -562,7 +562,7 @@
 	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 @@
 	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 @@
 	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 @@
 	call IncCrashCheckPointer
 	ld a, [hli]
 	ld e, a
-	ld d, $0
+	ld d, 0
 	call PlayMusic2
 	call HlToCrashCheckPointer
 	ret
@@ -1202,7 +1202,7 @@
 	call IncCrashCheckPointer
 	ld a, [hli]
 	ld e, a
-	ld d, $0
+	ld d, 0
 	call PlaySFX
 	call WaitSFX
 	call HlToCrashCheckPointer
@@ -1213,7 +1213,7 @@
 	ld a, [hli]
 	dec a
 	ld e, a
-	ld d, $0
+	ld d, 0
 	call PlayCry
 	call WaitSFX
 	call HlToCrashCheckPointer
@@ -1580,7 +1580,7 @@
 	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 @@
 	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 @@
 	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 @@
 	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 @@
 	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 @@
 	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 @@
 	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 @@
 	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 @@
 	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 @@
 	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 @@
 	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 @@
 	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 @@
 	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 @@
 	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 @@
 	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 @@
 	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 @@
 	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 @@
 	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 @@
 	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 @@
 .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 @@
 .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 @@
 	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 @@
 	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 @@
 	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 @@
 	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 @@
 	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 @@
 	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 @@
 	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 @@
 	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 @@
 	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 @@
 	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 @@
 	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 @@
 	cp $24
 	jr nc, .asm_17f679
 	ld e, a
-	ld d, $0
+	ld d, 0
 	ld hl, MobileErrorCodeTable
 	add hl, de
 	add hl, de