mirror of
https://github.com/thornAvery/jep-hack.git
synced 2026-02-21 23:12:16 +13:00
First Commit
Upload literally everything from the pokecrystal16 expand-move-ID branch
This commit is contained in:
commit
2f8a41f833
4618 changed files with 480386 additions and 0 deletions
70
home/item.asm
Normal file
70
home/item.asm
Normal file
|
|
@ -0,0 +1,70 @@
|
|||
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
|
||||
ldh 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
|
||||
ldh 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
|
||||
ldh 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue