Prev: 28965 Up: Map Next: 28997
28976: Next Object
Every update routine returns here. This moves onto the next object and goes round the main loop again, unless it was the last object of the pass. Then the pass ends by continuing at Pause_Loop.
Input
IX Object
NewActor 28976 LD HL,24089 Increment RandomNumber by one (this changes the random number).
28979 INC (HL)
28980 LD DE,8 DE=8 (the size of an object).
28983 ADD IX,DE Set IX to the next object.
28985 PUSH IX Copy IX to HL using the stack.
28987 POP HL
The self-modifying code routines change the address here to be either;
Altering Routine Alteration
ResetModifiedCode 24300
FrameUpdate 24204
28988 LD BC,24300 BC=Unused_Text (the end of the objects).
28991 AND A Subtract the end of the objects from the address of the object.
28992 SBC HL,BC
28994 JP C,MainLoop Jump to MainLoop if there are more objects to update.
Prev: 28965 Up: Map Next: 28997