Use ~X instead of $ff ^ X

This commit is contained in:
Rangi
2021-11-23 20:37:18 -05:00
parent ab0f9c287a
commit e706b878d9
16 changed files with 23 additions and 23 deletions

View File

@@ -472,7 +472,7 @@ SaveOptions:
ld bc, wOptionsEnd - wOptions
call CopyBytes
ld a, [wOptions]
and $ff ^ (1 << NO_TEXT_SCROLL)
and ~(1 << NO_TEXT_SCROLL)
ld [sOptions], a
jp CloseSRAM

View File

@@ -532,7 +532,7 @@ TrainerCard_Page2_3_OAMUpdate:
inc de
ld a, [wTrainerCardBadgeTileID]
and $ff ^ (1 << 7)
and ~(1 << 7)
add [hl]
ld [de], a ; tile id
inc hl