diff options
author | luckytyphlosion <alan.rj.huang@gmail.com> | 2015-10-25 12:56:05 -0400 |
---|---|---|
committer | luckytyphlosion <alan.rj.huang@gmail.com> | 2015-10-25 12:56:05 -0400 |
commit | c8ddbe7566120d74a5078d5a9031a6c5befde00d (patch) | |
tree | af11a8d6699187a30e7d67c17403c39b45a9c854 /home.asm | |
parent | fdad37cfb92543c0d6a3b1beb9d0e9de25cce409 (diff) |
Revert "data/facing.asm, titlescreen functions, oam/sprite related functions, other misc functions"
This reverts commit 3a5d7ec05db9ce1156863983a0427396d6f6f49b.
Diffstat (limited to 'home.asm')
-rw-r--r-- | home.asm | 32 |
1 files changed, 16 insertions, 16 deletions
@@ -32,7 +32,7 @@ SECTION "joypad", ROM0 [$60] SECTION "Home", ROM0 -DisableLCD:: ; 0061 (0:0061) +DisableLCD:: xor a ld [rIF], a ld a, [rIE] @@ -52,13 +52,13 @@ DisableLCD:: ; 0061 (0:0061) ld [rIE], a ret -EnableLCD:: ; 007b (0:007b) +EnableLCD:: ld a, [rLCDC] set rLCDC_ENABLE, a ld [rLCDC], a ret -ClearSprites:: ; 0082 (0:0082) +ClearSprites:: xor a ld hl, wOAMBuffer ld b, 40 * 4 @@ -68,7 +68,7 @@ ClearSprites:: ; 0082 (0:0082) jr nz, .loop ret -HideSprites:: ; 008d (0:008d) +HideSprites:: ld a, 160 ld hl, wOAMBuffer ld de, 4 @@ -101,7 +101,7 @@ SECTION "Header", ROM0 [$104] SECTION "Main", ROM0 -PlayPikachuPCM:: ; 0150 (0:0150) +Func_150:: ; 0150 (0:0150) ld a,[H_LOADEDROMBANK] push af ld a,b @@ -114,16 +114,16 @@ PlayPikachuPCM:: ; 0150 (0:0150) ld a,[hli] ld d,a ld a,$3 -.playSingleSample +.unknownloop dec a - jr nz,.playSingleSample + jr nz,.unknownloop rept 7 - call LoadNextSoundClipSample - call PlaySoundClipSample + call Func_199 + call Func_1a5 endr - call LoadNextSoundClipSample + call Func_199 dec bc ld a,c or b @@ -132,7 +132,7 @@ PlayPikachuPCM:: ; 0150 (0:0150) call BankswitchCommon ret -LoadNextSoundClipSample:: ; 0199 (0:0199) +Func_199:: ; 0199 (0:0199) ld a,d and $80 srl a @@ -141,14 +141,14 @@ LoadNextSoundClipSample:: ; 0199 (0:0199) sla d ret -PlaySoundClipSample:: ; 01a5 (0:01a5) +Func_1a5:: ; 01a5 (0:01a5) ld a,$3 -.loop +.unknownloop2 dec a - jr nz,.loop + jr nz,.unknownloop2 ret -Start:: ; 01ab (0:01ab) +Start:: cp GBC jr z, .gbc xor a @@ -159,7 +159,7 @@ Start:: ; 01ab (0:01ab) ld [hGBC], a jp Init -Joypad:: ; 01b9 (0:01b9) +Joypad:: ; 01b9 homecall_jump _Joypad ReadJoypad:: ; 01c8 (0:01c8) |