summaryrefslogtreecommitdiff
path: root/home/lcd.asm
diff options
context:
space:
mode:
authorxCrystal <rgr.crystal@gmail.com>2017-12-29 18:53:21 +0100
committerxCrystal <rgr.crystal@gmail.com>2017-12-29 18:53:21 +0100
commit3c6c80f1b24487ae4aa9d250d1dff290f09c231e (patch)
tree5d6567d4f9fd6044bb3b7ea4af8f8dc70d8a5401 /home/lcd.asm
parent69762a2bfd6b6134b99a24b3c8f091ff6a410ef9 (diff)
LY_BLANK and rLCDC constants
Diffstat (limited to 'home/lcd.asm')
-rw-r--r--home/lcd.asm8
1 files changed, 4 insertions, 4 deletions
diff --git a/home/lcd.asm b/home/lcd.asm
index 8ec1e02ce..e516db9d6 100644
--- a/home/lcd.asm
+++ b/home/lcd.asm
@@ -43,7 +43,7 @@ DisableLCD:: ; 568
; Don't need to do anything if the LCD is already off
ld a, [rLCDC]
- bit 7, a ; lcd enable
+ bit rLCDC_ENABLE, a
ret z
xor a
@@ -58,11 +58,11 @@ DisableLCD:: ; 568
.wait
; Wait until VBlank would normally happen
ld a, [rLY]
- cp 145
+ cp LY_VBLANK + 1
jr nz, .wait
ld a, [rLCDC]
- and %01111111 ; lcd enable off
+ and $ff ^ 1 << rLCDC_ENABLE
ld [rLCDC], a
xor a
@@ -75,7 +75,7 @@ DisableLCD:: ; 568
EnableLCD:: ; 58a
ld a, [rLCDC]
- set 7, a ; lcd enable
+ set rLCDC_ENABLE, a
ld [rLCDC], a
ret
; 591