2014-02-02 01:26:39 +00:00
|
|
|
DoItemEffect:: ; 2f3f
|
2013-09-08 05:45:54 +00:00
|
|
|
callba _DoItemEffect
|
|
|
|
ret
|
|
|
|
; 2f46
|
|
|
|
|
2014-02-02 01:26:39 +00:00
|
|
|
CheckTossableItem:: ; 2f46
|
2013-09-08 05:45:54 +00:00
|
|
|
push hl
|
|
|
|
push de
|
|
|
|
push bc
|
|
|
|
callba _CheckTossableItem
|
|
|
|
pop bc
|
|
|
|
pop de
|
|
|
|
pop hl
|
|
|
|
ret
|
|
|
|
; 2f53
|
|
|
|
|
2014-02-02 01:26:39 +00:00
|
|
|
TossItem:: ; 2f53
|
2013-09-08 05:45:54 +00:00
|
|
|
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
|
|
|
|
; 2f66
|
|
|
|
|
2014-02-02 01:26:39 +00:00
|
|
|
ReceiveItem:: ; 2f66
|
2013-09-08 05:45:54 +00:00
|
|
|
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
|
|
|
|
; 2f79
|
|
|
|
|
2014-02-02 01:26:39 +00:00
|
|
|
CheckItem:: ; 2f79
|
2013-09-08 05:45:54 +00:00
|
|
|
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
|
|
|
|
; 2f8c
|
|
|
|
|