Spil

From Esolang
Jump to navigation Jump to search

Spil is an Esoteric programming language created by User:Buckets in 2020.

Real Commands Instructions
0-7 Determines the movement, Push 0-7.
* Toggle 0-7 to the Following Pseudo-Commands*.
Pseudo-Commands Instructions
0 Push the input.
1 Pop The top value And Print it in ASCII.
2 Add the top Two Values.
3 Subtract the Top two values(, by t-b).
4 Multiply the top two values on the stack.
5 Divide the top two Values on the stack(, by t/b).
6 Mod the top two values On the stack(, by b%t).
7 If the Top Value = The Second to the top value, Toggle and move in 6, Else Toggle and move in 0.

From the Following Programs, We can assume the movements Form this table:

0 1 2 3 4 5 6 7
Go left Once, Upwards Twice. Go right 1, Up 2. Left: 2, Up: 1. Up once; 2 to The Right. Down 1 left 2. Go down one, Right 2. Down 2, Right -1. Down 2, Right 1.

Cat program:

5  1
  * 
    0

A+B Program:

5     
  *   1
    *    2
      *
        * 0
          * 
            0

Truth-machine Program:

7
      5 4
 7    1 6 2
     6 7
  7    7 *
    *7  0
   7   21
      7* 2
    6  3
      1*
      1
        4
     1