From 14a21880a0fad34c946beab55182b338a7be9a9d Mon Sep 17 00:00:00 2001 From: Rangi Date: Tue, 23 Nov 2021 20:50:17 -0500 Subject: Use ~X instead of $ff ^ X --- engine/battle_anims/anim_commands.asm | 2 +- engine/battle_anims/helpers.asm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'engine/battle_anims') diff --git a/engine/battle_anims/anim_commands.asm b/engine/battle_anims/anim_commands.asm index 52245d6a..a16c076a 100644 --- a/engine/battle_anims/anim_commands.asm +++ b/engine/battle_anims/anim_commands.asm @@ -218,7 +218,7 @@ BattleAnim_ClearOAM: ld c, NUM_SPRITE_OAM_STRUCTS .loop ld a, [hl] - and $ff ^ (PALETTE_MASK | VRAM_BANK_1) ; zeros out the palette bits + and ~(PALETTE_MASK | VRAM_BANK_1) ; zeros out the palette bits assert PAL_BATTLE_OB_ENEMY == 0 ld [hli], a rept SPRITEOAMSTRUCT_LENGTH - 1 diff --git a/engine/battle_anims/helpers.asm b/engine/battle_anims/helpers.asm index b533988e..6685ab73 100644 --- a/engine/battle_anims/helpers.asm +++ b/engine/battle_anims/helpers.asm @@ -37,7 +37,7 @@ GetBattleAnimFrame: push af ld a, [hl] push hl - and $ff ^ (Y_FLIP << 1 | X_FLIP << 1) + and ~(Y_FLIP << 1 | X_FLIP << 1) ld hl, BATTLEANIMSTRUCT_DURATION add hl, bc ld [hl], a -- cgit v1.2.3