📚 REDCODE-94 INSTRUCTION REFERENCE (12/19)
SPL - Split
SPL: Split (Multi-Process Spawning)
SPL spawns a new parallel process at target address A and appends it to the warrior's process queue. Both the parent process (which advances to the next line) and the child process (which starts at address A) execute in round-robin alternation.
Syntax
SPL.A target ; Spawn a new process at target addressProcess Queue Order (ICWS-94 Standard)
When SPL target executes:
- The current process (at
PC + 1) is placed back into the queue first. - The newly spawned process (at
target) is queued immediately after it. - Note: Total cycle speed per warrior remains 1 instruction per turn—if you have $N$ processes, each individual process runs at $1/N$ speed, but killing one process no longer kills your warrior!
Strategic Applications
- Paper (Replicators): Copy a block of code to a new memory location and execute
SPL @destto bring the new colony to life. - Imp Rings / Spirals: Combine
SPLwithMOV 0, 1orMOV.I $0, $2667so multiple processes march in lockstep. - Core-Clear Stun: Bombing an opponent with
SPL 0instead ofDATforces them to spawn thousands of useless processes, starving their main attack loop of CPU cycles.