diff options
author | luckytyphlosion <alan.rj.huang@gmail.com> | 2015-06-07 14:36:55 -0400 |
---|---|---|
committer | luckytyphlosion <alan.rj.huang@gmail.com> | 2015-06-07 14:36:55 -0400 |
commit | 51c3bd8b762c7c7412b44472f7dd4aac2cc11ef7 (patch) | |
tree | 2d6066a2bc993d95ba6e50dca1209692c3ace142 /home/lcdc.asm | |
parent | e66ff56ab78b6d03133d6e673ab954f3445cb3b1 (diff) |
Fixed many homebank functions.
Func_159b, fade.asm, init.asm, lcdc.asm, play_time.asm, serial.asm,
text.asm.
Added some wram/hram addresses too.
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 |