Prev: A313 Up: Map Next: A325
A317: Handler: Reset Laser Beam Slots
Clears the four laser beam slots from Laser_Parameter_1 by writing 00 to the first byte of each 18-byte slot.
See Handler_LaserBeam_FindSlot for the handler which actions "searching" for a free slot.
Handler_ResetLaserBeamSlots A317 LD HL,$6000 HL=Laser_Parameter_1.
A31A LD DE,$0018 DE=0018.
A31D LD B,$04 Set a slot counter in B for 04 loops.
ResetLaserBeamSlots_Loop A31F LD (HL),$00 Write 00 to *HL.
A321 ADD HL,DE HL=HL+DE.
A322 DJNZ ResetLaserBeamSlots_Loop Decrease the counter by one and jump back to ResetLaserBeamSlots_Loop until it is zero.
A324 RET Return.
Prev: A313 Up: Map Next: A325