From 6ae63a8ceac9c191ad89a1e9382ce3c87e6b2481 Mon Sep 17 00:00:00 2001 From: Sylvie <35663410+Rangi42@users.noreply.github.com> Date: Tue, 24 Sep 2024 10:48:10 -0400 Subject: Identify hardware register bits (#469) --- home/lcd.asm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'home/lcd.asm') 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 -- cgit v1.3.1-sl0p