https://esolangs.org/wiki/Albabet
Command Table:
Character | Description |
---|---|
a | Increments cell |
b | Decrements cell |
c | Sets cell to 0 |
d | Sets multiplier to cell value and sets cell to 0 |
e | Sets multiplier to cell value |
f | Sets multiplier to 0 |
g | Multiplies cell by multiplier |
h | Squares cell value (cell * cell) |
i | Prints cell value as ASCII character |
j | Adds cell value to multiplier |
aahhdaagdaagjdaji
aa
Sets cell to 2hh
Squares cell twice, so now cell is 16d
Sets multiplier to 16 and sets cell to 0aa
Sets cell to 2g
Multiplies cell by multiplier: 2 * 16 is 32daag
Repeating the action: cell is now 64, multiplier is now 32j
Adds cell to multiplier: 32 + 64 is 96daji
- Sets multiplier to 96 and cell to 0
- Sets cell to 1
- Adds 96 + 1 and stores the result in cell. Cell is now 97
- Print 97 as an ASCII character:
a
Here is a "Hello World" program:
Each letter is separated by
cf
to clear the cell and multiplier.Obviously, it could be optimized.
Here is each character and the code to join them:
p.s The exact output is
Hello World
. No comma or exclamation mark. Also, the output will not display correctly when used in the code above unless you comment out thedebug(c);
lines; they clutter up the output.