summaryrefslogtreecommitdiff
path: root/Add-a-fourth-stats-page.md
diff options
context:
space:
mode:
Diffstat (limited to 'Add-a-fourth-stats-page.md')
-rw-r--r--Add-a-fourth-stats-page.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/Add-a-fourth-stats-page.md b/Add-a-fourth-stats-page.md
index d1547e9..a6bf58c 100644
--- a/Add-a-fourth-stats-page.md
+++ b/Add-a-fourth-stats-page.md
@@ -162,13 +162,13 @@ Instead of three constants from 1 to 3, we'll use four constants from 0 to 3. We
-; ???
- ld [wStatsScreenFlags], a
- ld a, [wStatsScreenFlags]
-- and $ff ^ STAT_PAGE_MASK
+- and ~STAT_PAGE_MASK
- or PINK_PAGE ; first_page
- ld [wStatsScreenFlags], a
+ ld [wStatsScreenFlags], a ; PINK_PAGE
.loop
ld a, [wJumptableIndex]
- and $ff ^ (1 << 7)
+ and ~(1 << 7)
ld hl, StatsScreenPointerTable
rst JumpTable
call StatsScreen_WaitAnim ; check for keys?
@@ -183,14 +183,14 @@ Instead of three constants from 1 to 3, we'll use four constants from 0 to 3. We
- ???
- ld [wStatsScreenFlags], a
- ld a, [wStatsScreenFlags]
-- and $ff ^ STAT_PAGE_MASK
+- and ~STAT_PAGE_MASK
- or PINK_PAGE ; first_page
- ld [wStatsScreenFlags], a
+ ld [wStatsScreenFlags], a ; PINK_PAGE
.loop
farcall Mobile_SetOverworldDelay
ld a, [wJumptableIndex]
- and $ff ^ (1 << 7)
+ and ~(1 << 7)
ld hl, StatsScreenPointerTable
rst JumpTable
call StatsScreen_WaitAnim