Tips for golfing in Subleq

6

Subleq is a programming language with only one instruction. Each instruction contains 3 parameters. Code and data space is the same. How it works:

A B C

A, B and C are signed ints. Instructions are executed in the next way:

*B = *B - *A
if(*B <= 0) goto C;

One post is one tip. Write your tips for Subleq here!

Online interpreter, assembler and C to Subleq converter

username.ak

Posted 2016-02-03T08:03:23.457

Reputation: 411

1So, you could goto a number that isn't a multiple of 3 and therefore jump into an instruction, so to speak? – Neil – 2016-02-03T08:50:15.043

1@Neil yes. you can – username.ak – 2016-02-03T08:54:13.250

No answers