mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
71 lines
715 B
NASM
71 lines
715 B
NASM
DoItemEffect::
|
|
farcall _DoItemEffect
|
|
ret
|
|
|
|
CheckTossableItem::
|
|
push hl
|
|
push de
|
|
push bc
|
|
farcall _CheckTossableItem
|
|
pop bc
|
|
pop de
|
|
pop hl
|
|
ret
|
|
|
|
TossItem::
|
|
push hl
|
|
push de
|
|
push bc
|
|
ld a, [hROMBank]
|
|
push af
|
|
ld a, BANK(_TossItem)
|
|
rst Bankswitch
|
|
|
|
call _TossItem
|
|
|
|
pop bc
|
|
ld a, b
|
|
rst Bankswitch
|
|
pop bc
|
|
pop de
|
|
pop hl
|
|
ret
|
|
|
|
ReceiveItem::
|
|
push bc
|
|
ld a, [hROMBank]
|
|
push af
|
|
ld a, BANK(_ReceiveItem)
|
|
rst Bankswitch
|
|
push hl
|
|
push de
|
|
|
|
call _ReceiveItem
|
|
|
|
pop de
|
|
pop hl
|
|
pop bc
|
|
ld a, b
|
|
rst Bankswitch
|
|
pop bc
|
|
ret
|
|
|
|
CheckItem::
|
|
push hl
|
|
push de
|
|
push bc
|
|
ld a, [hROMBank]
|
|
push af
|
|
ld a, BANK(_CheckItem)
|
|
rst Bankswitch
|
|
|
|
call _CheckItem
|
|
|
|
pop bc
|
|
ld a, b
|
|
rst Bankswitch
|
|
pop bc
|
|
pop de
|
|
pop hl
|
|
ret
|