2018-06-24 14:09:41 +00:00
|
|
|
DoItemEffect::
|
2017-12-24 17:47:30 +00:00
|
|
|
farcall _DoItemEffect
|
2013-09-08 05:45:54 +00:00
|
|
|
ret
|
|
|
|
|
2018-06-24 14:09:41 +00:00
|
|
|
CheckTossableItem::
|
2013-09-08 05:45:54 +00:00
|
|
|
push hl
|
|
|
|
push de
|
|
|
|
push bc
|
2017-12-24 17:47:30 +00:00
|
|
|
farcall _CheckTossableItem
|
2013-09-08 05:45:54 +00:00
|
|
|
pop bc
|
|
|
|
pop de
|
|
|
|
pop hl
|
|
|
|
ret
|
|
|
|
|
2018-06-24 14:09:41 +00:00
|
|
|
TossItem::
|
2013-09-08 05:45:54 +00:00
|
|
|
push hl
|
|
|
|
push de
|
|
|
|
push bc
|
2018-08-25 18:28:22 +00:00
|
|
|
ldh a, [hROMBank]
|
2013-09-08 05:45:54 +00:00
|
|
|
push af
|
|
|
|
ld a, BANK(_TossItem)
|
|
|
|
rst Bankswitch
|
|
|
|
|
|
|
|
call _TossItem
|
|
|
|
|
|
|
|
pop bc
|
|
|
|
ld a, b
|
|
|
|
rst Bankswitch
|
|
|
|
pop bc
|
|
|
|
pop de
|
|
|
|
pop hl
|
|
|
|
ret
|
|
|
|
|
2018-06-24 14:09:41 +00:00
|
|
|
ReceiveItem::
|
2013-09-08 05:45:54 +00:00
|
|
|
push bc
|
2018-08-25 18:28:22 +00:00
|
|
|
ldh a, [hROMBank]
|
2013-09-08 05:45:54 +00:00
|
|
|
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
|
|
|
|
|
2018-06-24 14:09:41 +00:00
|
|
|
CheckItem::
|
2013-09-08 05:45:54 +00:00
|
|
|
push hl
|
|
|
|
push de
|
|
|
|
push bc
|
2018-08-25 18:28:22 +00:00
|
|
|
ldh a, [hROMBank]
|
2013-09-08 05:45:54 +00:00
|
|
|
push af
|
|
|
|
ld a, BANK(_CheckItem)
|
|
|
|
rst Bankswitch
|
|
|
|
|
|
|
|
call _CheckItem
|
|
|
|
|
|
|
|
pop bc
|
|
|
|
ld a, b
|
|
|
|
rst Bankswitch
|
|
|
|
pop bc
|
|
|
|
pop de
|
|
|
|
pop hl
|
|
|
|
ret
|