Goofy Ahh Esolang

From Esolang
Jump to navigation Jump to search

A stack-based esolang created by User:Dominicentek where every time you execute an instruction a goofy ahh sound plays based on the instruction. There's a 500ms delay between each instruction.

Instructions

Instruction Sound Description
if huh Skips over the next instruction if the number on top of the stack is 0. Pops.
goto slip Moves the instruction pointer to a line number, the line number is defined as an instruction argument
reverse boing Reverses the stack
copy piano Duplicates the value on top of the stack and pushes it
pop vine boom Pops the stack and discards the number
printstr fard Prints the number on top of the stack as an ASCII character. Pops.
printnum nerd Prints the number on top of the stack as-is. Pops.
add raaar Adds 2 numbers together on top of the stack (B + A) and pushes the result. Pops the 2 operands.
subtract dry bones Subtracts 2 numbers together on top of the stack (B - A) and pushes the result. Pops the 2 operands.
multiply bell Multiplies 2 numbers together on top of the stack (B * A) and pushes the result. Pops the 2 operands.
divide omg Divides 2 numbers together on top of the stack (B / A) and pushes the result. Pops the 2 operands.
0 alarm Pushes the number 0 on top of the stack
1 what the hell Pushes the number 1 on top of the stack
2 aw hell nah Pushes the number 2 on top of the stack
3 notification Pushes the number 3 on top of the stack
4 21 Pushes the number 4 on top of the stack
5 laugh Pushes the number 5 on top of the stack
6 pizza here Pushes the number 6 on top of the stack
7 pablo Pushes the number 7 on top of the stack
8 metal pipe Pushes the number 8 on top of the stack
9 saul nokia Pushes the number 9 on top of the stack

Example programs

Hello World

8
9
multiply
9
1
add
9
1
add
multiply
1
add
9
1
add
9
1
add
multiply
8
add
copy
4
4
multiply
7
multiply
1
subtract
9
2
add
4
multiply
8
4
multiply
9
9
multiply
6
add
4
4
multiply
7
multiply
1
subtract
4
4
multiply
7
multiply
2
add
9
1
add
9
1
add
multiply
8
add
9
1
add
9
1
add
multiply
8
4
multiply
1
add
reverse
printstr
printstr
printstr
printstr
printstr
printstr
printstr
printstr
printstr
printstr
printstr
printstr
printstr

truth-machine

Since this esolang doesn't have a way to get user input, change the top-most value.

1
copy
if
goto 7
printnum
goto 999
copy
printnum
goto 7

Interpreter

Source code and download