Prev: ED71 Up: Map Next: EDA6
ED75: Routine at ED75
ED75 CALL CheckObjectInInventory Call CheckObjectInInventory.
ED78 JR NZ,$ED98 Jump to ED98 if the item isn't already in the players inventory.
ED7A POP HL Restore HL from the stack.
Print "You're already carrying ".
ED7B LD HL,$A9FC HL=Messaging_YoureAlreadyCarrying.
This entry point is used by the routines at EDB8 and IsPlayerCarryingItem.
ED7E CALL PrintString Call PrintString.
ED81 LD HL,$ED6C HL=ED6C.
ED84 LD A,E A=E.
ED85 LD BC,$0001 BC=0001.
ED88 CPIR CPIR.
ED8A JR Z,$ED92 Jump to ED92 if DE is equal to 37.
Print "it.".
ED8C LD HL,$AA17 HL=Messaging_It.
ED8F JP $ED6D Jump to ED6D.
Print "them.".
ED92 LD HL,$AA1B HL=Messaging_Them.
ED95 JP $ED6D Jump to ED6D.
ED98 LD A,($A790) Compare *Count_InventoryItems with 05.
ED9B CP $05
ED9D LD B,E B=E.
ED9E RET NZ Return if *Count_InventoryItems was not equal to 05.
ED9F POP HL Restore HL from the stack.
Print "You can't carry any more.".
EDA0 LD HL,$AA21 HL=Messaging_YouCantCarryAnyMore.
EDA3 JP $ED6D Jump to ED6D.
Prev: ED71 Up: Map Next: EDA6