aboutsummaryrefslogtreecommitdiffstats
path: root/home/lcdc.asm
diff options
context:
space:
mode:
authorpikalaxalt <PikalaxALT@gmail.com>2016-06-11 20:31:09 -0400
committerpikalaxalt <PikalaxALT@gmail.com>2016-06-11 20:31:09 -0400
commit041c4f28a3c35e31329222769534942439b70f29 (patch)
tree07c7998e8b8c34f25c22e4292ff0f133c787679c /home/lcdc.asm
parentPikachu movement functions (diff)
downloadpokeyellow-041c4f28a3c35e31329222769534942439b70f29.tar.gz
pokeyellow-041c4f28a3c35e31329222769534942439b70f29.tar.xz
pokeyellow-041c4f28a3c35e31329222769534942439b70f29.zip
Character dict; surfing minigame; printer debug
Diffstat (limited to 'home/lcdc.asm')
-rw-r--r--home/lcdc.asm25
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