2015-11-28 12:13:40 -08:00
|
|
|
BattleIntroSlidingPics: ; 4e980
|
2015-11-10 17:18:49 -08:00
|
|
|
ld a, [rSVBK]
|
|
|
|
push af
|
|
|
|
ld a, $5
|
|
|
|
ld [rSVBK], a
|
|
|
|
call .subfunction1
|
|
|
|
ld a, rSCX - $ff00
|
2015-12-26 18:59:03 -08:00
|
|
|
ld [hFFC6], a
|
2015-11-10 17:18:49 -08:00
|
|
|
call .subfunction2
|
|
|
|
xor a
|
2015-12-26 18:59:03 -08:00
|
|
|
ld [hFFC6], a
|
2015-11-10 17:18:49 -08:00
|
|
|
pop af
|
|
|
|
ld [rSVBK], a
|
|
|
|
ret
|
|
|
|
; 4e998
|
|
|
|
|
2016-04-10 12:01:49 -07:00
|
|
|
.subfunction1 ; 4e998
|
2015-11-10 17:18:49 -08:00
|
|
|
call .subfunction4
|
|
|
|
ld a, $90
|
|
|
|
ld [hSCX], a
|
|
|
|
ld a, %11100100
|
|
|
|
call DmgToCgbBGPals
|
|
|
|
lb de, %11100100, %11100100
|
|
|
|
call DmgToCgbObjPals
|
|
|
|
ret
|
|
|
|
; 4e9ab
|
|
|
|
|
2016-04-10 12:01:49 -07:00
|
|
|
.subfunction2 ; 4e9ab
|
2015-11-10 17:18:49 -08:00
|
|
|
ld d, $90
|
|
|
|
ld e, $72
|
|
|
|
ld a, $48
|
|
|
|
inc a
|
|
|
|
.loop1
|
|
|
|
push af
|
|
|
|
.loop2
|
|
|
|
ld a, [rLY]
|
|
|
|
cp $60
|
|
|
|
jr c, .loop2
|
|
|
|
ld a, d
|
|
|
|
ld [hSCX], a
|
|
|
|
call .subfunction5
|
|
|
|
rept 2
|
|
|
|
inc e
|
|
|
|
endr
|
|
|
|
rept 2
|
|
|
|
dec d
|
|
|
|
endr
|
|
|
|
pop af
|
|
|
|
push af
|
|
|
|
cp $1
|
|
|
|
jr z, .skip1
|
|
|
|
push de
|
|
|
|
call .subfunction3
|
|
|
|
pop de
|
|
|
|
|
|
|
|
.skip1
|
|
|
|
call DelayFrame
|
|
|
|
pop af
|
|
|
|
dec a
|
|
|
|
jr nz, .loop1
|
|
|
|
ret
|
|
|
|
; 4e9d6
|
|
|
|
|
2016-04-10 12:01:49 -07:00
|
|
|
.subfunction3 ; 4e9d6
|
2015-12-13 11:15:16 -08:00
|
|
|
ld hl, Sprites + 1 ; x pixel
|
2015-11-10 17:18:49 -08:00
|
|
|
ld c, $12 ; 18
|
|
|
|
ld de, $4
|
|
|
|
.loop3
|
|
|
|
rept 2
|
|
|
|
dec [hl]
|
|
|
|
endr
|
|
|
|
add hl, de
|
|
|
|
dec c
|
|
|
|
jr nz, .loop3
|
|
|
|
ret
|
|
|
|
; 4e9e5
|
|
|
|
|
2016-04-10 12:01:49 -07:00
|
|
|
.subfunction4 ; 4e9e5
|
2015-11-10 17:18:49 -08:00
|
|
|
ld hl, LYOverrides
|
|
|
|
ld a, $90
|
|
|
|
ld bc, SCREEN_HEIGHT_PX
|
|
|
|
call ByteFill
|
|
|
|
ret
|
|
|
|
; 4e9f1
|
|
|
|
|
2016-04-10 12:01:49 -07:00
|
|
|
.subfunction5 ; 4e9f1
|
2015-11-10 17:18:49 -08:00
|
|
|
ld hl, LYOverrides
|
|
|
|
ld a, d
|
|
|
|
ld c, $3e ; 62
|
|
|
|
.loop4
|
|
|
|
ld [hli], a
|
|
|
|
dec c
|
|
|
|
jr nz, .loop4
|
|
|
|
ld a, e
|
|
|
|
ld c, $22 ; 34
|
|
|
|
.loop5
|
|
|
|
ld [hli], a
|
|
|
|
dec c
|
|
|
|
jr nz, .loop5
|
|
|
|
xor a
|
|
|
|
ld c, $30 ; 48
|
|
|
|
.loop6
|
|
|
|
ld [hli], a
|
|
|
|
dec c
|
|
|
|
jr nz, .loop6
|
|
|
|
ret
|
|
|
|
; 4ea0a
|