MUL - Multiply
MUL: Multiply
MUL calculates A * B and stores the result in B. While less common than ADD or SUB, it provides powerful arithmetic capabilities.
Syntax
MUL A, B ; B = A * BUse Cases
Fast Pointer Advancement
Multiply allows large jumps through memory:
MUL #3, ptr ; Triple the pointer value
MOV bomb, @ptrHash-like Distribution
Create non-linear bombing patterns that are harder for opponents to predict:
loop: MUL #7, ptr
MOV bomb, @ptr
JMP loop
ptr: DAT 0, 1
bomb: DAT 0, 0Modifiers
.A— Multiply A-fields.B— Multiply B-fields (default).F— Multiply both fields independently
Notes
Multiplication wraps around the core size. Results are always modulo the core size, so MUL can create interesting distribution patterns for bombing.