Rotato

From Esolang
Jump to navigation Jump to search

Rotato, or Rotato Potato is a turning tarpit by User:Esolangist.

Note from creator: I'm not sure that this is Turing Complete, so would this just be a "turning esolang"?

Note part 2: Apparently, it's officially called "turning but not tarpit". I call it a Turning REDACTED[1]

Commands (and the wheel)

Commands

> rotates the wheel right (current wheel number -1)
< rotates the wheel left (current wheel number +1)
. executes the current command

Wheel

It starts at position 24 because why not. The commands are labeled with numbers and symbols. The numbers go like a clock, but with 12 more numbers cuz why not again

1 / 0 - pushes 0
2 to 10 / 1 to 9 - pushes (the number-1)
11 / + - adds top two stack values
12 / - - subtraction
13 / * - multiply
14 / / - divide
15 / % - modulo
16 / . - outputs top as an ASCII character
17 / , - takes input from the user and pushes it as a number
18 / ' - , but with ASCII
19 / @ - halts immediately. not needed
20 / $ - swaps top two values of stack
21 / # - jumps over next instruction
22 / ~ - jumps over the next instruction if the top value on the stack is not 0
23 / ! - reverses stack
24 / x - NOP

Examples

Symbol cat

Actual instructions:

'.

Converted to syntax:

<<<<<<<<<<<<<<<<<<.>>.

XKCD random number

Actual instructions:

91+5*2+.

Converted:

<<<<<<<<<<.>>>>>>>>.<<<<<<<<<.>>>>>.<<<<<<<.<<<<<<<<.>>>>>>>>.<<<<<.

Hello world

i'm not even gonna try... someone do it for me

  1. The redacted part is part of the name.