Prev: 53724 Up: Map Next: 53788
53766: Fetch Next Object
Used by the routines at 53368, 53788, 54122, 54277, 54385 and 54476.
Input
IX Pointer to objects table
Output
IX Pointer to object table
IY Pointer to object data
F The zero flag is set if the end of the table is reached
FetchNextObject 53766 EXX Switch to the shadow registers.
53767 LD DE,3 Add 0003 to the object table pointer in IX.
53770 ADD IX,DE
53772 LD D,(IX+2) Fetch the pointer to the object data and store it in IY.
53775 LD E,(IX+1)
53778 PUSH DE
53779 POP IY
53781 LD A,(IX+0) Check the object ID at *IX+0 to see if the terminator character (255) has been reached.
53784 CP 255
53786 EXX Switch back to the normal registers.
53787 RET Return.
Prev: 53724 Up: Map Next: 53788