6
\$\begingroup\$

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

\$\endgroup\$
  • 1
    \$\begingroup\$ So, you could goto a number that isn't a multiple of 3 and therefore jump into an instruction, so to speak? \$\endgroup\$ – Neil Feb 3 '16 at 8:50
  • 1
    \$\begingroup\$ @Neil yes. you can \$\endgroup\$ – username.ak Feb 3 '16 at 8:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.