diff options
Diffstat (limited to 'home/lcdc.asm')
-rw-r--r-- | home/lcdc.asm | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/home/lcdc.asm b/home/lcdc.asm new file mode 100644 index 00000000..7057f755 --- /dev/null +++ b/home/lcdc.asm @@ -0,0 +1,19 @@ +LCDC:: ; 15ac (0:15ac) + push af + ld a,[hLCDCPointer] ; doubles as enabling byte + and a + jr z,.noLCDCInterrupt + push hl + ld a,[rLY] + ld l,a + ld h,$c7 + ld h,[hl] ; h != not part of pointer + ld a,[hLCDCPointer] + ld l,a + ld a,h + ld h,$ff + ld [hl],a + pop hl +.noLCDCInterrupt + pop af + reti
\ No newline at end of file |