2015-11-30 08:04:14 -08:00
|
|
|
UpdateUnownDex: ; fba18
|
|
|
|
ld a, [UnownLetter]
|
|
|
|
ld c, a
|
2017-12-09 16:41:03 -08:00
|
|
|
ld b, NUM_UNOWN
|
2015-11-30 08:04:14 -08:00
|
|
|
ld hl, UnownDex
|
|
|
|
.loop
|
|
|
|
ld a, [hli]
|
|
|
|
and a
|
|
|
|
jr z, .done
|
|
|
|
cp c
|
|
|
|
ret z
|
|
|
|
dec b
|
|
|
|
jr nz, .loop
|
|
|
|
ret
|
|
|
|
|
|
|
|
.done
|
|
|
|
dec hl
|
|
|
|
ld [hl], c
|
|
|
|
ret
|
|
|
|
; fba2e
|
|
|
|
|
|
|
|
PrintUnownWord: ; fba2e (3e:7a2e)
|
|
|
|
hlcoord 4, 15
|
|
|
|
ld bc, 12
|
|
|
|
ld a, " "
|
|
|
|
call ByteFill
|
2016-01-09 19:46:41 -08:00
|
|
|
ld a, [wDexCurrentUnownIndex]
|
2015-11-30 08:04:14 -08:00
|
|
|
ld e, a
|
|
|
|
ld d, 0
|
|
|
|
ld hl, UnownDex
|
|
|
|
add hl, de
|
|
|
|
ld a, [hl]
|
|
|
|
ld e, a
|
|
|
|
ld d, 0
|
|
|
|
ld hl, UnownWords
|
|
|
|
add hl, de
|
2016-05-04 08:46:23 -07:00
|
|
|
add hl, de
|
2015-11-30 08:04:14 -08:00
|
|
|
ld a, [hli]
|
|
|
|
ld e, a
|
|
|
|
ld d, [hl]
|
|
|
|
hlcoord 4, 15
|
|
|
|
.loop
|
|
|
|
ld a, [de]
|
|
|
|
cp -1
|
|
|
|
ret z
|
|
|
|
inc de
|
|
|
|
ld [hli], a
|
|
|
|
jr .loop
|
|
|
|
; fba5a (3e:7a5a)
|
|
|
|
|
2017-12-24 16:35:35 -08:00
|
|
|
|
2017-12-13 21:36:24 -08:00
|
|
|
INCLUDE "data/unown_words.asm"
|