diff options
author | Rangi <remy.oukaour+rangi42@gmail.com> | 2020-11-09 15:16:44 -0500 |
---|---|---|
committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2020-11-09 15:20:35 -0500 |
commit | bc8636d68805116ef126feecc07cde63238490da (patch) | |
tree | d88fed0393eb69c8c37fbaf7ee21f7dd3af289c9 /engine/battle_anims | |
parent | 6e20c30f6e48ba36237d42b13ea6e6827b62ff40 (diff) |
Replace $0 with 0 for "ld l, a / ld h, 0" idiom
Diffstat (limited to 'engine/battle_anims')
-rw-r--r-- | engine/battle_anims/anim_commands.asm | 2 | ||||
-rw-r--r-- | engine/battle_anims/bg_effects.asm | 6 | ||||
-rw-r--r-- | engine/battle_anims/functions.asm | 10 |
3 files changed, 9 insertions, 9 deletions
diff --git a/engine/battle_anims/anim_commands.asm b/engine/battle_anims/anim_commands.asm index 6d4129fa..9d9e6ef5 100644 --- a/engine/battle_anims/anim_commands.asm +++ b/engine/battle_anims/anim_commands.asm @@ -654,7 +654,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 b504df29..466310fc 100644 --- a/engine/battle_anims/bg_effects.asm +++ b/engine/battle_anims/bg_effects.asm @@ -1951,7 +1951,7 @@ BattleBGEffect_FadeMonsToBlackRepeating: swap a sla a ld e, a - ld d, $0 + ld d, 0 push bc call BGEffect_CheckBattleTurn jr nz, .player @@ -2559,7 +2559,7 @@ BattleBGEffect_GetFirstDMGPal: inc [hl] BattleBGEffect_GetNextDMGPal: ld l, a - ld h, $0 + ld h, 0 add hl, de ld a, [hl] cp -1 @@ -2752,7 +2752,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 2a72cf12..a38bf152 100644 --- a/engine/battle_anims/functions.asm +++ b/engine/battle_anims/functions.asm @@ -772,7 +772,7 @@ BattleAnimFunction_FireBlast: call DeinitBattleAnimation ret -.one +.one ; Flame that moves upward ld hl, BATTLEANIMSTRUCT_YOFFSET add hl, bc @@ -2139,13 +2139,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 @@ -3381,7 +3381,7 @@ BattleAnimFunction_SkyAttack: call DeinitBattleAnimation ret -.SkyAttack_CyclePalette: +.SkyAttack_CyclePalette: ; Cycles wOBP0 pallete ld hl, BATTLEANIMSTRUCT_VAR2 add hl, bc @@ -3390,7 +3390,7 @@ BattleAnimFunction_SkyAttack: inc [hl] srl a ld e, a - ld d, $0 + ld d, 0 ldh a, [hSGB] and a jr nz, .sgb |