Pokedex_PutScrollbarOAM data values

This commit is contained in:
Rangi 2018-07-29 16:15:06 -04:00
parent 1d96a79a37
commit 366330e981

View File

@ -2138,40 +2138,40 @@ Pokedex_PutScrollbarOAM:
ld hl, wDexListingScrollOffset ld hl, wDexListingScrollOffset
add [hl] add [hl]
cp e cp e
jr z, .asm_4133f jr z, .max
ld hl, $0 ld hl, 0
ld bc, $79 ld bc, 121 ; max y - min y
call AddNTimes call AddNTimes
ld e, l ld e, l
ld d, h ld d, h
ld b, $0 ld b, 0
ld a, d ld a, d
or e or e
jr z, .asm_41341 jr z, .done
ld a, [wDexListingEnd] ld a, [wDexListingEnd]
ld c, a ld c, a
.asm_41333 .loop
ld a, e ld a, e
sub c sub c
ld e, a ld e, a
ld a, d ld a, d
sbc $0 sbc 0
ld d, a ld d, a
jr c, .asm_41341 jr c, .done
inc b inc b
jr .asm_41333 jr .loop
.asm_4133f .max
ld b, $79 ld b, 121 ; max y - min y
.asm_41341 .done
ld a, $14 ld a, 20 ; min y
add b add b
pop hl pop hl
ld [hli], a ld [hli], a
ld a, $a1 ld a, 161 ; x
ld [hli], a ld [hli], a
ld a, $f ld a, $0f ; tile id
ld [hli], a ld [hli], a
ld [hl], $0 ld [hl], 0 ; attributes
ret ret
Pokedex_InitArrowCursor: Pokedex_InitArrowCursor: