Prev: D1DC Up: Map Next: D21C
D206: Fetch Next Object
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 D206 EXX Switch to the shadow registers.
D207 LD DE,$0003 Add 0003 to the object table pointer in IX.
D20A ADD IX,DE
D20C LD D,(IX+$02) Fetch the pointer to the object data and store it in IY.
D20F LD E,(IX+$01)
D212 PUSH DE
D213 POP IY
D215 LD A,(IX+$00) Check the object ID at *IX+00 to see if the terminator character (FF) has been reached.
D218 CP $FF
D21A EXX Switch back to the normal registers.
D21B RET Return.
Prev: D1DC Up: Map Next: D21C