Prev: 7125 Up: Map Next: 7145
7130: 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 7130 LD HL,$5E19 Increment RandomNumber by one (this changes the random number).
7133 INC (HL)
7134 LD DE,$0008 DE=08 (the size of an object).
7137 ADD IX,DE Set IX to the next object.
7139 PUSH IX Copy IX to HL using the stack.
713B POP HL
The self-modifying code routines change the address here to be either;
Altering Routine Alteration
ResetModifiedCode 5EEC
FrameUpdate 5E8C
713C LD BC,$5EEC BC=Unused_Text (the end of the objects).
713F AND A Subtract the end of the objects from the address of the object.
7140 SBC HL,BC
7142 JP C,MainLoop Jump to MainLoop if there are more objects to update.
Prev: 7125 Up: Map Next: 7145