401
Jump to navigation
Jump to search
401 is a very simple esolang made to be turing complete and have less commands than nope. oh also it was made by User:Yayimhere
syntax
there are 4 commands:
xy will set x to the binary signed number y
xyz set x to y plus z. y and z can only be variables
x: if x is less than or equal to 0 do the following command(s) until ;
(which separates comands). else do nothing
x goto line x
examples
count down from 99 to 0:
x01100011 y11 xyx x: 10
computational class
notes:
- numbers are signed binary numbers
- - and + are reserved registers for dec and inc
- every register must be created using
name value
without the space - this uses Short Minsky Machine Notation
this is the translation:
℘xy
| V y-y;y:x+2 -℘y
| V y+y
and the program must start with:
+01 -11