Prev: A77D Up: Map Next: A7A4
A793: Initialise drones configuration data buffer
Used by the routines at 9470 and BA09.
A793 LD HL,$5E50 Set HL to point to index byte for drone configuration data buffer
A796 LD B,$08 Set B to the max number of drones to configure
A798 LD A,$00 Set A to the initial index into offset position table for this drone
A79A LD (HL),A Copy value of A to address pointed by HL
A79B LD DE,$0003 Increment address pointer by 3
A79E ADD HL,DE
A79F ADD A,$08 Increment by 8 the index into offset position table for the next drone
A7A1 DJNZ $A79A Jump back and init data for next drone
A7A3 RET
Prev: A77D Up: Map Next: A7A4