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/init.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/init.asm')
-rw-r--r-- | home/init.asm | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/home/init.asm b/home/init.asm index 202bd110..e4d980ef 100644 --- a/home/init.asm +++ b/home/init.asm @@ -1,11 +1,11 @@ -SoftReset:: +SoftReset:: ; 1d08 (0:1d08) call StopAllSounds call GBPalWhiteOut ld c, $20 call DelayFrames ; fallthrough -Init:: +Init:: ; 1d10 ; Program init. rLCDC_DEFAULT EQU %11100011 @@ -51,7 +51,7 @@ rLCDC_DEFAULT EQU %11100011 or c jr nz, .loop - call ClearVram + call ClearVram ; 1dc6 ld hl, $ff80 ld bc, $ffff - $ff80 @@ -70,6 +70,8 @@ rLCDC_DEFAULT EQU %11100011 ld [hSCX], a ld [hSCY], a ld [$ff0f], a + ld [wc0f3], a + ld [wc0f4], a ld a, 1 << VBLANK + 1 << TIMER + 1 << SERIAL ld [rIE], a @@ -118,7 +120,7 @@ rLCDC_DEFAULT EQU %11100011 jp SetDefaultNamesBeforeTitlescreen -ClearVram: +ClearVram: ; 1dc6 (0:1dc6) ld hl, $8000 ld bc, $2000 xor a |