Prev: 52452 Up: Map Next: 52496
52482: Remove All Objects
Used by the routine at GameOver.
Removes every object by setting the types of all 23 objects to zero.
RemoveAllObjects 52482 LD HL,48270 Point at the object table, set the distance from one object to the next (16 bytes) and set a counter for the 23 objects.
52485 LD DE,16
52488 LD B,23
RemoveAllObjects_Loop 52490 LD (HL),0 Remove an object, and loop back until all of them have been removed.
52492 ADD HL,DE
52493 DJNZ RemoveAllObjects_Loop
52495 RET Return.
Prev: 52452 Up: Map Next: 52496