Separate maps.asm, pics.asm, sprites.asm, and tilesets.asm from main.asm (#251)

Each new file builds its own .o, along with separate main.o and home.o, which necessitates many more "exported::" labels.
This commit is contained in:
Rangi 2020-06-27 15:32:24 -04:00 committed by GitHub
parent ff927ba730
commit 4b853ad676
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
317 changed files with 2290 additions and 2240 deletions

View file

@ -4,7 +4,7 @@
; [wcf91] = item ID
; [wItemQuantity] = item quantity
; sets carry flag if successful, unsets carry flag if unsuccessful
AddItemToInventory_:
AddItemToInventory_::
ld a, [wItemQuantity] ; a = item quantity
push af
push bc
@ -97,7 +97,7 @@ AddItemToInventory_:
; hl = address of inventory (either wNumBagItems or wNumBoxItems)
; [wWhichPokemon] = index (within the inventory) of the item to remove
; [wItemQuantity] = quantity to remove
RemoveItemFromInventory_:
RemoveItemFromInventory_::
push hl
inc hl
ld a, [wWhichPokemon] ; index (within the inventory) of the item being removed