blob: abad27f2df1aef1e9323465359f6138eeb0bc06e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
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
|