SLT - Skip if Less Than
SLT: Skip if Less Than
SLT compares operand A and operand B as unsigned modular integers (0 to CORESIZE - 1), and skips the next instruction if A is strictly less than B (A < B).
Syntax
SLT.AB #threshold, target ; Skip next instruction if threshold < target.BUse Cases
Self-Hit Prevention in Scanners
Competitive scanners must avoid bombing their own code. By checking whether the scan pointer falls within a protected range using SLT, a scanner can safely skip over its own body:
scan: ADD.AB #12, ptr
SLT.AB #20, ptr ; If 20 < ptr, pointer is safely outside our 20-line body
JMP.A scan ; Otherwise (ptr <= 20), skip attacking ourselves!Bounded Loops & Phase Switching
Use SLT to switch a warrior from a fast scanning phase into a carpet-bombing core-clear phase once a pointer exceeds a threshold.
Modifiers
.AB— Compare source A-value with destination B-value (default when A is#).B— Compare B-fields (default when A is not#).A/.F— Compare A-fields, or require both A and B to be less than destination