pokecrystal-board/engine/routines/printitemdescription.asm

32 lines
441 B
NASM
Raw Normal View History

2018-01-12 00:15:58 -08:00
PrintItemDescription: ; 0x1c8955
2018-01-23 14:39:09 -08:00
; Print the description for item [wCurSpecies] at de.
2018-01-12 00:15:58 -08:00
2018-01-23 14:39:09 -08:00
ld a, [wCurSpecies]
2018-01-12 00:15:58 -08:00
cp TM01
jr c, .not_a_tm
2018-01-23 14:39:09 -08:00
ld [wCurItem], a
2018-01-12 00:15:58 -08:00
push de
farcall GetTMHMItemMove
pop hl
ld a, [wd265]
2018-01-23 14:39:09 -08:00
ld [wCurSpecies], a
predef PrintMoveDesc
2018-01-12 00:15:58 -08:00
ret
.not_a_tm
push de
ld hl, ItemDescriptions
2018-01-23 14:39:09 -08:00
ld a, [wCurSpecies]
2018-01-12 00:15:58 -08:00
dec a
ld c, a
ld b, 0
add hl, bc
add hl, bc
ld e, [hl]
inc hl
ld d, [hl]
pop hl
jp PlaceString
; 0x1c8987