Prev: B62E Up: Map Next: B665
B64B: Validate Object
Used by the routines at PrintObjects and CheckRoomObjects.
Validate Object.
ValidateObject B64B PUSH AF Remember the room and the search position.
B64C PUSH BC
B64D INC BC Advance BC to the next byte.
B64E LD A,($AEF0) Read the item count into A.
B651 SUB C Turn the search position into this item's index.
B652 LD E,A
B653 LD IX,($AED6) Call GetTableEntry to look up the table entry.
B657 CALL GetTableEntry
B65A POP BC Restore the search position from the stack.
B65B LD A,H See whether this item has a description.
B65C OR L Combine L into the working value.
B65D JR Z,ValidateObject_Next Reject an item that has no description.
B65F POP AF Restore the room ID from the stack.
B660 AND A Test A so the following branch can see whether it is zero.
B661 RET Return.
ValidateObject_Next B662 POP AF Restore the room ID from the stack.
B663 CP A Report that this item has no description.
B664 RET Return.
View the equivalent code in;
Prev: B62E Up: Map Next: B665