Spyrodecimal

From Esolang
Jump to: navigation, search

Spyrodecimal is an esoteric programming language created by Spyro543. It was designed to have only numbers as commands, but there are a few letters as commands, too.

All Commands

0 - Pauses the program execution for 1/10 second.
1 - Outputs the ASCII equivalent of the number in memory.
2 - Increases the number in memory by 1.
3 - Decreases the number in memory by 1.
4 - Gets input and stores it in memory.
5 - Outputs a new line.
6 - Generates a random number between 1 and 256 and stores it in memory.
7 - Moves the program reader back for the amount in memory. For example, if 5 is in memory, it will move back 5 spaces.
8 – Resets the memory to 0.
9 – Same as 7, except moves the reader forward instead of backward.
q – Quits the interpreter.
x – Quits the program, but not the interpreter.
s – Stores the current memory value into one of six variables (a, b, c, d, e, f). Variables are not affected by 8. Syntax (s<var> example: sa)
r – Recalls the value stored into one of six variables (a, b, c, d, e, f) and stores it in memory. Syntax (r<var> example: ra)

Example Programs

Hello World program

Since it takes so long to get a single character in memory, this program only prints Hello (split up for readability).

22222222222222222222222222222222222222222222222222222222222222222222222218
22222222222222222222222222222222222222222222222222222222222222222222218
2222222222222222222222222222222222222222222222222222222222222222222222222222118
22222222222222222222222222222222222222222222222222222222222222222222222222222221

What is your name? program

This program asks you for your name then greets you. It's just a simple modification of the above program, again, split up for readability.

4sa4sb4sc4sd4se4sf
822222222222222222222222222222222222222222222222222222222222222222222222218
22222222222222222222222222222222222222222222222222222222222222222222218
2222222222222222222222222222222222222222222222222222222222222222222222222222118
222222222222222222222222222222222222222222222222222222222222222222222222222222218
2222222222222222222222222222222218
ra1rb1rc1rd1re1rf1

The name must be no more than 6 characters.

External resources

Download links can be found at each of these sites.