Prev: 84D8 Up: Map Next: 8506
84F7: Reset Planet
Used by the routine at StartGame.
Clears 0480 bytes of object RAM from Laser_Parameter_1.
Clear 0480 bytes of object RAM from Laser_Parameter_1.
ResetPlanet 84F7 LD HL,$6000 Set the target address to Laser_Parameter_1.
84FA LD BC,$0480 Set the byte counter to 0480.
ResetPlanet_Loop 84FD LD (HL),$00 Write 00 to the current object-RAM byte.
84FF INC HL Move onto the next byte.
8500 DEC BC Decrease the byte counter by one and loop back to ResetPlanet_Loop until every byte is clear.
8501 LD A,B
8502 OR C
8503 JR NZ,ResetPlanet_Loop
8505 RET Return.
Prev: 84D8 Up: Map Next: 8506