Multleq

From Esolang
Jump to navigation Jump to search
This article is a stub, which means that it is not detailed enough and needs to be expanded. Please help us by adding some more information.
Not to be confused with Multeq.

Multleq(Multiply, add and jump if less or equal to) is an OISC by User:ChuckEsoteric08 which uses self-modifying code.

Command

a b c d e

memory address a multiplied by memory address b and incremented by memory address c, storing result in memory address a and if result was less or equal to memory address d, goto memory address e.

Note that every memory address that does not exist is always zero

Assembly-like language

Copy a to b:

COP a, b, d, e:
                  b Z a d e

Where 'Z' is value that is zero Set a to 0

CLEAR a, d, e:
              a Z Z d e

Jump unconditionally:

JMP a:
      Z Z Z Z a