Replace hardware_constants.asm with the community-standard hardware.inc 5.0 (#1186)
This commit is contained in:
@@ -37,7 +37,7 @@ DisableLCD::
|
||||
|
||||
; Don't need to do anything if the LCD is already off
|
||||
ldh a, [rLCDC]
|
||||
bit rLCDC_ENABLE, a
|
||||
bit B_LCDC_ENABLE, a
|
||||
ret z
|
||||
|
||||
xor a
|
||||
@@ -46,7 +46,7 @@ DisableLCD::
|
||||
ld b, a
|
||||
|
||||
; Disable VBlank
|
||||
res VBLANK, a
|
||||
res B_IE_VBLANK, a
|
||||
ldh [rIE], a
|
||||
|
||||
.wait
|
||||
@@ -56,7 +56,7 @@ DisableLCD::
|
||||
jr nz, .wait
|
||||
|
||||
ldh a, [rLCDC]
|
||||
and ~(1 << rLCDC_ENABLE)
|
||||
and ~LCDC_ON
|
||||
ldh [rLCDC], a
|
||||
|
||||
xor a
|
||||
@@ -67,6 +67,6 @@ DisableLCD::
|
||||
|
||||
EnableLCD::
|
||||
ldh a, [rLCDC]
|
||||
set rLCDC_ENABLE, a
|
||||
set B_LCDC_ENABLE, a
|
||||
ldh [rLCDC], a
|
||||
ret
|
||||
|
Reference in New Issue
Block a user