Prev: 53217 Up: Map Next: 53274
53248: Draw Next Object
Used by the routine at DrawObjectsInOrder.
Draws an object that does not have to wait for any other object, and flags it as drawn in the list.
Input
IX Address of the object
DrawNextObject 53248 LD HL,(23501) Fetch the place in the list after the first object from FirstListPosition.
This entry point is used by the routine at CompareWithOtherObject.
DrawNextObject_Flag 53251 DEC HL Point HL at the entry of the object.
53252 SET 7,(HL) Flag the object as drawn.
53254 LD A,255 Mark the end of the list of objects that have taken the place of the first object at ObjectChain.
53256 LD (53274),A
53259 LD HL,23486 Point HL at ObjectsDrawn.
53262 INC (HL) Add one to it.
53263 CALL DrawObject Draw the object into the buffer.
53266 JP DrawObjectsInOrder_First Jump to DrawObjectsInOrder_First to find the next object.
This entry point is used by the routine at DrawObjectsInOrder.
There are no objects left to draw.
DrawNextObject_Finish 53269 POP IY Restore IY and IX from the stack.
53271 POP IX
53273 RET Return.
View the equivalent code in;
Prev: 53217 Up: Map Next: 53274