diff options
author | yenatch <yenatch@gmail.com> | 2013-09-08 01:45:54 -0400 |
---|---|---|
committer | yenatch <yenatch@gmail.com> | 2013-09-08 01:45:54 -0400 |
commit | 3b70005fb07750959a86c464a8a423a94f98f04b (patch) | |
tree | 03db5ca978039bbb151fb19253f9f52c5a5a0657 /common | |
parent | f0cf86777ba012485003a05fb5988a9812051808 (diff) |
split item interfaces into common/item.asm
Diffstat (limited to 'common')
-rw-r--r-- | common/item.asm | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/common/item.asm b/common/item.asm new file mode 100644 index 000000000..0906a19f6 --- /dev/null +++ b/common/item.asm @@ -0,0 +1,76 @@ +DoItemEffect: ; 2f3f + callba _DoItemEffect + ret +; 2f46 + +CheckTossableItem: ; 2f46 + push hl + push de + push bc + callba _CheckTossableItem + pop bc + pop de + pop hl + ret +; 2f53 + +TossItem: ; 2f53 + 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 + +ReceiveItem: ; 2f66 + 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 + +CheckItem: ; 2f79 + 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 + |