summaryrefslogtreecommitdiff
path: root/engine/menus/pokedex.asm
diff options
context:
space:
mode:
Diffstat (limited to 'engine/menus/pokedex.asm')
-rwxr-xr-xengine/menus/pokedex.asm16
1 files changed, 8 insertions, 8 deletions
diff --git a/engine/menus/pokedex.asm b/engine/menus/pokedex.asm
index 874fe50f..315e4805 100755
--- a/engine/menus/pokedex.asm
+++ b/engine/menus/pokedex.asm
@@ -205,9 +205,9 @@ HandlePokedexListMenu:
jr z, .checkIfRightPressed
.downPressed ; scroll down one row
ld a, [wDexMaxSeenMon]
- cp a, 7
+ cp 7
jp c, .loop ; can't if the list is shorter than 7
- sub a, 7
+ sub 7
ld b, a
ld a, [wListScrollOffset]
cp b
@@ -221,12 +221,12 @@ HandlePokedexListMenu:
jr z, .checkIfLeftPressed
.rightPressed ; scroll down 7 rows
ld a, [wDexMaxSeenMon]
- cp a, 7
+ cp 7
jp c, .loop ; can't if the list is shorter than 7
- sub a, 6
+ sub 6
ld b, a
ld a, [wListScrollOffset]
- add a, 7
+ add 7
ld [wListScrollOffset], a
cp b
jp c, .loop
@@ -240,7 +240,7 @@ HandlePokedexListMenu:
jr z, .buttonAPressed
.leftPressed
ld a, [wListScrollOffset]
- sub a, 7
+ sub 7
ld [wListScrollOffset], a
jp nc, .loop
xor a
@@ -324,7 +324,7 @@ DrawPokedexVerticalLine:
.loop
ld [hl], a
add hl, de
- xor a, 1 ; toggle between vertical line tile and box tile
+ xor 1 ; toggle between vertical line tile and box tile
dec c
jr nz, .loop
ret
@@ -459,7 +459,7 @@ ShowPokedexDataInternal:
.waitForButtonPress
call JoypadLowSensitivity
ldh a, [hJoy5]
- and a, A_BUTTON | B_BUTTON
+ and A_BUTTON | B_BUTTON
jr z, .waitForButtonPress
pop af
ldh [hTilesetType], a