![]()  | 
Routines | 
| Prev: 42644 | Up: Map | Next: 42703 | 
| 
 
Used by the routines at PrintObjects and CheckRoomObjects.
 
 
  | 
||||||||||||
| ValidateObject | 42673 | PUSH AF | Stash AF and BC on the stack. | |||||||||
| 42674 | PUSH BC | |||||||||||
| 42675 | INC BC | Adjust the object counter. | ||||||||||
| 42676 | LD A,(48071) | A=*Count_Objects_1. | ||||||||||
| 42679 | SUB C | Calculate the index and store the result in E. | ||||||||||
| 42680 | LD E,A | |||||||||||
| 42681 | PUSH IX | |||||||||||
| 42683 | LD IX,45021 | IX=Table_ItemDescriptions. | ||||||||||
| 42687 | CALL GetTableEntry | Call GetTableEntry. | ||||||||||
| 42690 | POP IX | |||||||||||
| 42692 | POP BC | Restore the object counter from the stack. | ||||||||||
| 42693 | LD A,H | Jump to InvalidObject if the object is invalid. | ||||||||||
| 42694 | OR L | |||||||||||
| 42695 | JR Z,InvalidObject | |||||||||||
| 42697 | POP AF | Restore the object type from the stack. | ||||||||||
| 42698 | AND A | Clear the Z flag. | ||||||||||
| 42699 | RET | Return. | ||||||||||
| InvalidObject | 42700 | POP AF | Restore AF from the stack. | |||||||||
| 42701 | CP A | Set the Z flag. | ||||||||||
| 42702 | RET | Return. | ||||||||||
| 
 
View the equivalent code in;  
  | 
||||||||||||
| Prev: 42644 | Up: Map | Next: 42703 |