summaryrefslogtreecommitdiff
path: root/engine/pokemon/stats_screen.asm
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2021-11-23 20:37:18 -0500
committerRangi <remy.oukaour+rangi42@gmail.com>2021-11-23 20:37:18 -0500
commite706b878d9f78466e6cc9eda184e14a798cc4a0d (patch)
treea5625f28a4d5af1358727b54772659cee892b031 /engine/pokemon/stats_screen.asm
parentab0f9c287a45d1986985545d7ec6a2cd862e26fc (diff)
Use ~X instead of $ff ^ X
Diffstat (limited to 'engine/pokemon/stats_screen.asm')
-rw-r--r--engine/pokemon/stats_screen.asm8
1 files changed, 4 insertions, 4 deletions
diff --git a/engine/pokemon/stats_screen.asm b/engine/pokemon/stats_screen.asm
index 932c0f72b..33e2d1195 100644
--- a/engine/pokemon/stats_screen.asm
+++ b/engine/pokemon/stats_screen.asm
@@ -65,12 +65,12 @@ StatsScreenMain:
; ???
ld [wStatsScreenFlags], a
ld a, [wStatsScreenFlags]
- and $ff ^ STAT_PAGE_MASK
+ and ~STAT_PAGE_MASK
or PINK_PAGE ; first_page
ld [wStatsScreenFlags], a
.loop
ld a, [wJumptableIndex]
- and $ff ^ (1 << 7)
+ and ~(1 << 7)
ld hl, StatsScreenPointerTable
rst JumpTable
call StatsScreen_WaitAnim
@@ -85,7 +85,7 @@ StatsScreenMobile:
; ???
ld [wStatsScreenFlags], a
ld a, [wStatsScreenFlags]
- and $ff ^ STAT_PAGE_MASK
+ and ~STAT_PAGE_MASK
or PINK_PAGE ; first_page
ld [wStatsScreenFlags], a
.loop
@@ -394,7 +394,7 @@ StatsScreen_JoypadAction:
.set_page
ld a, [wStatsScreenFlags]
- and $ff ^ STAT_PAGE_MASK
+ and ~STAT_PAGE_MASK
or c
ld [wStatsScreenFlags], a
ld h, 4