Move effects; no more reloadmapmusic, returnafterbattle

This commit is contained in:
PikalaxALT
2015-12-26 18:11:55 -05:00
parent f485a45cda
commit 2bd45ca574
96 changed files with 1281 additions and 1078 deletions

View File

@@ -397,7 +397,7 @@ EnterMapMusic:: ; 3d03
push af
xor a
ld [wc2c1], a
ld [wDontPlayMapMusicOnReload], a
ld de, MUSIC_BICYCLE
ld a, [PlayerState]
cp PLAYER_BIKE
@@ -422,7 +422,7 @@ EnterMapMusic:: ; 3d03
; 3d2f
TryRestartMapMusic:: ; 3d2f
ld a, [wc2c1]
ld a, [wDontPlayMapMusicOnReload]
and a
jr z, RestartMapMusic
xor a
@@ -431,7 +431,7 @@ TryRestartMapMusic:: ; 3d2f
call PlayMusic
call DelayFrame
xor a
ld [wc2c1], a
ld [wDontPlayMapMusicOnReload], a
ret
; 3d47

View File

@@ -22,17 +22,17 @@ Reset:: ; 150
_Start:: ; 16e
cp $11
jr z, .asm_175
jr z, .cgb
xor a
jr .asm_177
jr .load
.asm_175
.cgb
ld a, $1
.asm_177
.load
ld [hCGB], a
ld a, $1
ld [$ffea], a
ld [hFFEA], a
; 17d
@@ -69,29 +69,29 @@ Init:: ; 17d
ld [rLCDC], a
; Clear WRAM bank 0
ld hl, $c000
ld bc, $d000 - $c000
.asm_1b1
ld hl, wc000
ld bc, wd000 - wc000
.ByteFill
ld [hl], 0
inc hl
dec bc
ld a, b
or c
jr nz, .asm_1b1
jr nz, .ByteFill
ld sp, Stack
; Clear HRAM
ld a, [hCGB]
push af
ld a, [$ffea]
ld a, [hFFEA]
push af
xor a
ld hl, $ff80
ld bc, $ffff - $ff80
ld hl, HRAM_START
ld bc, HRAM_END - HRAM_START
call ByteFill
pop af
ld [$ffea], a
ld [hFFEA], a
pop af
ld [hCGB], a

View File

@@ -20,10 +20,10 @@ DMATransfer:: ; 15d8
UpdateBGMapBuffer:: ; 15e3
; Copy [$ffdc] 16x8 tiles from BGMapBuffer
; Copy [hFFDC] 16x8 tiles from BGMapBuffer
; to bg map addresses in BGMapBufferPtrs.
; [$ffdc] must be even since this is done in pairs.
; [hFFDC] must be even since this is done in pairs.
; Return carry on success.
@@ -76,11 +76,11 @@ rept 2
endr
; We've done 2 16x8 blocks
ld a, [$ffdc]
ld a, [hFFDC]
rept 2
dec a
endr
ld [$ffdc], a
ld [hFFDC], a
jr nz, .next