![]() |
Routines |
| Prev: 34008 | Up: Map | Next: 34054 |
|
Clears 1152 bytes of object RAM from Laser_Parameter_1.
|
||||
|
Clear 1152 bytes of object RAM from Laser_Parameter_1.
|
||||
| ResetPlanet | 34039 | LD HL,24576 | Set the target address to Laser_Parameter_1. | |
| 34042 | LD BC,1152 | Set the byte counter to 1152. | ||
| ResetPlanet_Loop | 34045 | LD (HL),0 | Write 0 to the current object-RAM byte. | |
| 34047 | INC HL | Move onto the next byte. | ||
| 34048 | DEC BC | Decrease the byte counter by one and loop back to ResetPlanet_Loop until every byte is clear. | ||
| 34049 | LD A,B | |||
| 34050 | OR C | |||
| 34051 | JR NZ,ResetPlanet_Loop | |||
| 34053 | RET | Return. | ||
| Prev: 34008 | Up: Map | Next: 34054 |