summaryrefslogtreecommitdiff
path: root/home/print_text.asm
diff options
context:
space:
mode:
authorYoann Fievez <yoann.fievez@gmail.com>2021-11-05 20:40:15 +0100
committerGitHub <noreply@github.com>2021-11-05 15:40:15 -0400
commit8349bfd8e646002105dfd6a7f997c26cf0e0624b (patch)
tree8586363ba32075ec9c7ddf07e384507679658b11 /home/print_text.asm
parentb44a10a43a1fa4a558b4c593d0a610571ecb3a50 (diff)
Refactorize check button pressed (#340)
Diffstat (limited to 'home/print_text.asm')
-rw-r--r--home/print_text.asm4
1 files changed, 2 insertions, 2 deletions
diff --git a/home/print_text.asm b/home/print_text.asm
index 049ddfb4..962ae519 100644
--- a/home/print_text.asm
+++ b/home/print_text.asm
@@ -25,11 +25,11 @@ PrintLetterDelay::
call Joypad
ldh a, [hJoyHeld]
.checkAButton
- bit 0, a ; is the A button pressed?
+ bit BIT_A_BUTTON, a
jr z, .checkBButton
jr .endWait
.checkBButton
- bit 1, a ; is the B button pressed?
+ bit BIT_B_BUTTON, a
jr z, .buttonsNotPressed
.endWait
call DelayFrame