![]() |
Routines |
Prev: 44857 | Up: Map | Next: 44912 |
Used by the routines at PrintObjects and CheckRoomObjects.
|
||||||||||||
ValidateObject | 44886 | PUSH AF | Stash AF and BC on the stack. | |||||||||
44887 | PUSH BC | |||||||||||
44888 | INC BC | Adjust the object counter. | ||||||||||
44889 | LD A,(42982) | A=*Count_Items. | ||||||||||
44892 | SUB C | Calculate the index and store the result in E. | ||||||||||
44893 | LD E,A | |||||||||||
44894 | LD IX,(42956) | IX=*Pointer_ItemDescriptions. | ||||||||||
44898 | CALL GetTableEntry | Call GetTableEntry. | ||||||||||
44901 | POP BC | Restore the object counter from the stack. | ||||||||||
44902 | LD A,H | Jump to InvalidObject if the object is invalid. | ||||||||||
44903 | OR L | |||||||||||
44904 | JR Z,InvalidObject | |||||||||||
44906 | POP AF | Restore the object type from the stack. | ||||||||||
44907 | AND A | Clear the Z flag. | ||||||||||
44908 | RET | Return. | ||||||||||
InvalidObject | 44909 | POP AF | Restore AF from the stack. | |||||||||
44910 | CP A | Set the Z flag. | ||||||||||
44911 | RET | Return. |
Prev: 44857 | Up: Map | Next: 44912 |