|
|
|
+ |
[https://github.com/AlexIsOK/E62qpodb593 E62qpodb593] is a golf language made by [https://github.com/AlexIsOK AlexIsOK] using the Unlicense. |
|
+ |
|
|
+ |
== Instructions == |
|
+ |
|
|
+ |
This language uses simple instructions: |
|
+ |
|
|
+ |
{| class="wikitable" |
|
+ |
|- |
|
+ |
! Name !! Character |
|
+ |
|- |
|
+ |
| Start a loop || e |
|
+ |
|- |
|
+ |
| Copy value at pointer to clipboard || z |
|
+ |
|- |
|
+ |
| Increment value of stack at pointer || q |
|
+ |
|- |
|
+ |
| Decrement value of stack at pointer || p |
|
+ |
|- |
|
+ |
| Output value of stack at pointer to standard output || o |
|
+ |
|- |
|
+ |
| Move pointer to the right || d |
|
+ |
|- |
|
+ |
| Move pointer to the left || b |
|
+ |
|- |
|
+ |
| Set value at pointer to clipboard || 2 |
|
+ |
|- |
|
+ |
| End loop || 3 |
|
+ |
|- |
|
+ |
| Increment value at stack if lower than clipboard || 6 |
|
+ |
|- |
|
+ |
| Decrement value at stack if lower than clipboard || 9 |
|
+ |
|- |
|
+ |
| Go up five values (same as qqqqq) || y |
|
+ |
|- |
|
+ |
| Go down five values (same as ppppp) || k |
|
+ |
|- |
|
+ |
| GOTO the HOME address (usually 0) || 5 |
|
+ |
|- |
|
+ |
| Set the value of the stack at pointer to 0 (NUL) || 0 |
|
+ |
|- |
|
+ |
| Set the value of the stack at pointer to 64 (@) || t |
|
+ |
|} |
|
+ |
|
|
+ |
|
|
+ |
== Looping == |
|
+ |
|
|
+ |
The amount of times to loop is stored in the pointer address 4, meaning that the maximum times you can loop is 127. The language does NOT support nested loops. |
|
+ |
|
|
+ |
== Examples == |
|
+ |
|
|
+ |
=== Hello World === |
|
+ |
The current shortest version of outputting "Hello, World!" made by AlexIsOK is 72 bytes. |
|
+ |
|
|
+ |
<code>tqqqyoyyyyyypoyqqooqqqoztkkkkotkkkkkkppotyyyyyppo2oqqqokpokkqqotkkkkkkpo</code> |
|
+ |
|
|
+ |
Broken down: |
|
+ |
|
|
+ |
<code> |
|
+ |
tqqqyo #set the pointer address of pointer#0 to 67 (H) and output<br> |
|
+ |
yyyyyypo #e<br> |
|
+ |
yqqoo #ll<br> |
|
+ |
qqqo #o<br> |
|
+ |
z #copy to clipboard<br> |
|
+ |
tkkkko #,<br> |
|
+ |
tkkkkkkppo #space<br> |
|
+ |
tyyyyyppo #W<br> |
|
+ |
2 #paste 'o' to stack value<br> |
|
+ |
o #output 'o'<br> |
|
+ |
qqqo #r<br> |
|
+ |
kpo #l<br> |
|
+ |
kkqqo #d<br> |
|
+ |
tkkkkkkpo #! |
|
+ |
</code> |
|
+ |
== Implementations == |
|
+ |
The original implementation is in Java, which can be found [https://github.com/AlexIsOK/E62qpodb593/blob/master/src/E62qpodb593.java here]. |