aboutsummaryrefslogtreecommitdiffstats
path: root/home/window.asm
diff options
context:
space:
mode:
authordannye <33dannye@gmail.com>2025-11-12 17:56:10 -0600
committerdannye <33dannye@gmail.com>2025-11-12 17:56:10 -0600
commit324ae167d15ae4eef3cda411e10201661e57d88d (patch)
tree86c2b73ce1262f12c1b3eb82874e8572e80e583f /home/window.asm
parentSeparate surfing Pikachu graphics from audio engine code (diff)
parentUse features of RGBDS 1.0.0 (#537) (diff)
downloadpokeyellow-324ae167d15ae4eef3cda411e10201661e57d88d.tar.gz
pokeyellow-324ae167d15ae4eef3cda411e10201661e57d88d.tar.xz
pokeyellow-324ae167d15ae4eef3cda411e10201661e57d88d.zip
Merge branch 'master' of https://github.com/pret/pokered
Diffstat (limited to 'home/window.asm')
-rw-r--r--home/window.asm16
1 files changed, 8 insertions, 8 deletions
diff --git a/home/window.asm b/home/window.asm
index 18c00e79..c34b4f69 100644
--- a/home/window.asm
+++ b/home/window.asm
@@ -151,7 +151,7 @@ PlaceMenuCursor::
jr nz, .oldMenuItemLoop
.checkForArrow1
ld a, [hl]
- cp "▶" ; was an arrow next to the previously selected menu item?
+ cp '▶' ; was an arrow next to the previously selected menu item?
jr nz, .skipClearingArrow
.clearArrow
ld a, [wTileBehindCursor]
@@ -175,11 +175,11 @@ PlaceMenuCursor::
jr nz, .currentMenuItemLoop
.checkForArrow2
ld a, [hl]
- cp "▶" ; has the right arrow already been placed?
+ cp '▶' ; has the right arrow already been placed?
jr z, .skipSavingTile ; if so, don't lose the saved tile
ld [wTileBehindCursor], a ; save tile before overwriting with right arrow
.skipSavingTile
- ld a, "▶" ; place right arrow
+ ld a, '▶' ; place right arrow
ld [hl], a
ld a, l
ld [wMenuCursorLocation], a
@@ -199,7 +199,7 @@ PlaceUnfilledArrowMenuCursor::
ld l, a
ld a, [wMenuCursorLocation + 1]
ld h, a
- ld [hl], "▷"
+ ld [hl], '▷'
ld a, b
ret
@@ -209,7 +209,7 @@ EraseMenuCursor::
ld l, a
ld a, [wMenuCursorLocation + 1]
ld h, a
- ld [hl], " "
+ ld [hl], ' '
ret
; This toggles a blinking down arrow at hl on and off after a delay has passed.
@@ -223,7 +223,7 @@ EraseMenuCursor::
HandleDownArrowBlinkTiming::
ld a, [hl]
ld b, a
- ld a, "▼"
+ ld a, '▼'
cp b
jr nz, .downArrowOff
.downArrowOn
@@ -235,7 +235,7 @@ HandleDownArrowBlinkTiming::
dec a
ldh [hDownArrowBlinkCount2], a
ret nz
- ld a, " "
+ ld a, ' '
ld [hl], a
ld a, $ff
ldh [hDownArrowBlinkCount1], a
@@ -257,7 +257,7 @@ HandleDownArrowBlinkTiming::
ret nz
ld a, $06
ldh [hDownArrowBlinkCount2], a
- ld a, "▼"
+ ld a, '▼'
ld [hl], a
ret