aboutsummaryrefslogtreecommitdiffstats
path: root/home/lcd.asm
diff options
context:
space:
mode:
authorSylvie <35663410+Rangi42@users.noreply.github.com>2024-09-24 10:48:10 -0400
committerGitHub <noreply@github.com>2024-09-24 10:48:10 -0400
commit6ae63a8ceac9c191ad89a1e9382ce3c87e6b2481 (patch)
tree7cdbc055c2bb6c949946a4fd931a4451b0adff97 /home/lcd.asm
parentIdentify more bit flags (#465) (diff)
downloadpokeyellow-6ae63a8ceac9c191ad89a1e9382ce3c87e6b2481.tar.gz
pokeyellow-6ae63a8ceac9c191ad89a1e9382ce3c87e6b2481.tar.xz
pokeyellow-6ae63a8ceac9c191ad89a1e9382ce3c87e6b2481.zip
Identify hardware register bits (#469)
Diffstat (limited to 'home/lcd.asm')
-rw-r--r--home/lcd.asm4
1 files changed, 2 insertions, 2 deletions
diff --git a/home/lcd.asm b/home/lcd.asm
index 5c496824..aef6d43f 100644
--- a/home/lcd.asm
+++ b/home/lcd.asm
@@ -3,7 +3,7 @@ DisableLCD::
ldh [rIF], a
ldh a, [rIE]
ld b, a
- res 0, a
+ res rIE_VBLANK, a
ldh [rIE], a
.wait
@@ -12,7 +12,7 @@ DisableLCD::
jr nz, .wait
ldh a, [rLCDC]
- and ~rLCDC_ENABLE_MASK
+ and ~(1 << rLCDC_ENABLE)
ldh [rLCDC], a
ld a, b
ldh [rIE], a