diff options
author | Rangi <remy.oukaour+rangi@gmail.com> | 2020-08-09 15:16:31 -0400 |
---|---|---|
committer | Rangi <remy.oukaour+rangi@gmail.com> | 2020-08-09 15:16:31 -0400 |
commit | 9c229cde440bc6f68343331ad7bc6e1a52a742f0 (patch) | |
tree | 3bc08aaca7e09ae9933a11dbdcdc545b90d5b343 /home/items.asm | |
parent | a75c6619fb933dc2d4c94b24394fb6fa9335b3b1 (diff) |
Clean up some code in home/
Diffstat (limited to 'home/items.asm')
-rwxr-xr-x | home/items.asm | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/home/items.asm b/home/items.asm index 5df4d13..c31d3b0 100755 --- a/home/items.asm +++ b/home/items.asm @@ -1,8 +1,9 @@ INCLUDE "constants.asm" + SECTION "home/items.asm@TossItem", ROM0 -TossItem: ; 00:3243 +TossItem: ldh a, [hROMBank] push af ld a, BANK(_TossItem) @@ -18,7 +19,7 @@ TossItem: ; 00:3243 call Bankswitch ret -ReceiveItem:: ; 3259 +ReceiveItem:: ; function to add an item (in varying quantities) to the player's bag or PC box ; INPUT: ; HL = address of inventory (either wNumBagItems or wNumBoxItems) @@ -41,6 +42,7 @@ ReceiveItem:: ; 3259 pop bc ret + SECTION "home/items.asm@GiveItem", ROM0 GiveItem:: @@ -58,4 +60,4 @@ GiveItem:: call GetItemName call CopyStringToStringBuffer2 scf - ret
\ No newline at end of file + ret |