Prev: AE0D Up: Map Next: AE5E
AE2C: Routine at AE2C
Used by the routines at A9A4 and A9B0.
AE2C CALL CheckObjectInInventory Call CheckObjectInInventory.
AE2F JR NZ,$AE48 Jump to AE48 if ?? is not equal to 00.
Print "You're already carrying it.".
AE31 LD HL,$001B HL=Messaging_YoureAlreadyCarryingIt.
AE34 LD BC,$0003 BC=0003.
AE37 XOR A A=00.
AE38 OR C Set the bits from C.
AE39 JR Z,$AE55 Jump to AE55 if ?? is equal to C.
AE3B PUSH HL Stash HL on the stack.
AE3C LD HL,$B6F1 HL=B6F1.
AE3F LD A,E A=E.
AE40 CPIR CPIR.
AE42 POP HL Restore HL from the stack.
AE43 JR NZ,$AE55 Jump to AE55 if ?? is not equal to C.
AE45 INC HL Increment HL by one.
AE46 JR $AE55 Jump to AE55.
Print "You can't carry any more.".
AE48 LD HL,$001F HL=Messaging_YouCantCarryAnyMore.
AE4B LD A,($A0D3) Jump to AE5C if *Count_InventoryItems is less than *A0D3.
AE4E LD B,A
AE4F LD A,($A0D2)
AE52 CP B
AE53 JR C,$AE5C
AE55 CALL PrintCompressedStringAndNewline Call PrintCompressedStringAndNewline.
AE58 LD A,$01 A=01.
AE5A AND A Set flags.
AE5B RET Return.
AE5C XOR A A=00.
AE5D RET Return.
Prev: AE0D Up: Map Next: AE5E