mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-22 07:02:17 +13:00
Reorganize home header
This commit is contained in:
parent
c9c59dc343
commit
6bd86e10c3
6 changed files with 143 additions and 192 deletions
25
home/lcd.asm
Normal file
25
home/lcd.asm
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
DisableLCD::
|
||||
xor a
|
||||
ld [rIF], a
|
||||
ld a, [rIE]
|
||||
ld b, a
|
||||
res 0, a
|
||||
ld [rIE], a
|
||||
|
||||
.wait
|
||||
ld a, [rLY]
|
||||
cp LY_VBLANK
|
||||
jr nz, .wait
|
||||
|
||||
ld a, [rLCDC]
|
||||
and $ff ^ rLCDC_ENABLE_MASK
|
||||
ld [rLCDC], a
|
||||
ld a, b
|
||||
ld [rIE], a
|
||||
ret
|
||||
|
||||
EnableLCD::
|
||||
ld a, [rLCDC]
|
||||
set rLCDC_ENABLE, a
|
||||
ld [rLCDC], a
|
||||
ret
|
||||
Loading…
Add table
Add a link
Reference in a new issue