diff options
author | YamaArashi <shadow962@live.com> | 2016-06-11 17:49:03 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-11 17:49:03 -0700 |
commit | db0ac16b6b4f257de338d1aaac561e681ca8723a (patch) | |
tree | d6888723f443557ce45c9a00d873caa5e7a8930e /home/lcdc.asm | |
parent | 401d6e7f36e86aa246a2c0591195e1f0f01e879f (diff) | |
parent | f5983c0f813d3d908b6016db3ed866e4ca9437dc (diff) |
Merge pull request #14 from PikalaxALT/master
Yellow documentation
Diffstat (limited to 'home/lcdc.asm')
-rw-r--r-- | home/lcdc.asm | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/home/lcdc.asm b/home/lcdc.asm index 7057f755..f94cdb19 100644 --- a/home/lcdc.asm +++ b/home/lcdc.asm @@ -1,19 +1,20 @@ LCDC:: ; 15ac (0:15ac) push af - ld a,[hLCDCPointer] ; doubles as enabling byte + ld a, [hLCDCPointer] ; doubles as enabling byte and a - jr z,.noLCDCInterrupt + 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 + ; [C700 + [rLY]] --> [FF00 + [hLCDCPointer]] + ld a, [rLY] + ld l, a + ld h, wLYOverrides / $100 + 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 + reti |