Prev: 51371 Up: Map Next: 51439
51413: 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 The address of the object
Flag it drawn and print it.
DrawNextObject 51413 LD HL,(23341) Fetch the place in the list after the first object.
This entry point is used by the routine at CompareWithOtherObject.
DrawNextObject_Flag 51416 DEC HL Point HL at the entry of the object.
51417 SET 7,(HL) Flag the object as drawn.
51419 LD A,255 Mark the end of the list of objects that have taken the first place.
51421 LD (51439),A
51424 LD HL,23326 Point HL at ObjectsDrawn.
51427 INC (HL) Add one to it.
51428 CALL DrawObject Draw the object into the buffer.
51431 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 51434 POP IY Restore IY and IX from the stack.
51436 POP IX
51438 RET Return.
View the equivalent code in;
Prev: 51371 Up: Map Next: 51439