akdrfsbathnede knem

From Esolang
Jump to navigation Jump to search

akdrfsbathnede knem Is a esolang by User:Qawtykit that uses a tape of stacks to store data.

Basics

akdrfsbathnede knem has a tape of unbounded stacks. Those stacks contain unbounded signed integers. You can also "carry" one value to move it to a different stack. The tape has seven stacks, and the stack pointer starts in the center of it (leaving three cells in either direction). if the pointer goes past the tape, it wraps around to the other side.

Commands

Command Description
> Move the stack pointer right
< Move the stack pointer left
# Push 1 onto the current stack
^ Pop the top of the current stack, and begin carrying it
v Push the carried value onto the current stack, and remove the carried value
V Push the carried value onto current stack twice, and remove the carried value
+ Remove the carried value and pop the top of the stack. Add them together, and push the result onto the current stack
- Same as +, but subtraction (popped value - carried value)
* Same as +, but multiplication
/ Same as +, but division (popped value / carried value)
% Same as +, but modulo (popped value % carried value)
G Remove the carried value, y, and pop the top of the current stack, x. If x > y, push 1, otherwise push 0
= Same as G, but it's equal to
| pop from the current stack. if the top of current stack is 0, go to previous |. The first | can still be jumped to, but it is otherwise ignored.
$ same as |, but it goes to the next one instead
I Take a number from the user and push it onto current stack
O Remove the carried value and output as number
U Remove the carried value and output its corresponding Unicode character

Examples

Infinite loop

|#^#-|

Swap top two values of current stack

^>v<^<v>>^<v<^>v

Truth-machine

I##^-=$##^-^VO$|#^O##^-|$

Fun Video Game

##^-|^VI=$#^+|$>
##^+^V^V++#^+##^+^V*#^+^V+*^V^U
##^+V*^>V^<v#^+-^>>V^<<U
>##^+^*^<+^V^U
##^+#^++^V^U
##^+^V^*#^+^V^+#^++^V^U
##^+#^+-^V^U
>>##^+^V^*^+^U