Subtract the contents of address a
from the contents of address b
, store the result in address b
, and if the result is non-positive, transfer control to address c
. If the result is positive, execution continues to the next instruction in the code. So subleq a, b, c
would be equivalent to:
mem[b] -= mem[a];
if (mem[b] <= 0)
goto c;
A variant of subleq
is subneg
, which is equivalent to subleq
except instead of mem[b] <= 0
it performs mem[b] < 0
.