Prev: 44557 Up: Map Next: 44638
44588: Routine at AE2C
Used by the routines at 43428 and 43440.
44588 CALL CheckObjectInInventory Call CheckObjectInInventory.
44591 JR NZ,44616 Jump to 44616 if ?? is not equal to 0.
Print "You're already carrying it.".
44593 LD HL,27 HL=Messaging_YoureAlreadyCarryingIt.
44596 LD BC,3 BC=0003.
44599 XOR A A=0.
44600 OR C Set the bits from C.
44601 JR Z,44629 Jump to 44629 if ?? is equal to C.
44603 PUSH HL Stash HL on the stack.
44604 LD HL,46833 HL=46833.
44607 LD A,E A=E.
44608 CPIR CPIR.
44610 POP HL Restore HL from the stack.
44611 JR NZ,44629 Jump to 44629 if ?? is not equal to C.
44613 INC HL Increment HL by one.
44614 JR 44629 Jump to 44629.
Print "You can't carry any more.".
44616 LD HL,31 HL=Messaging_YouCantCarryAnyMore.
44619 LD A,(41171) Jump to 44636 if *Count_InventoryItems is less than *41171.
44622 LD B,A
44623 LD A,(41170)
44626 CP B
44627 JR C,44636
44629 CALL PrintCompressedStringAndNewline Call PrintCompressedStringAndNewline.
44632 LD A,1 A=1.
44634 AND A Set flags.
44635 RET Return.
44636 XOR A A=0.
44637 RET Return.
Prev: 44557 Up: Map Next: 44638