a^2+b^2=c^2
Jump to navigation
Jump to search
a^2+b^2=c^2 or trianguler theorems is a esolang/computer created by User:Yayimhere for no reason
memory
memory is stored as a 12 nibble high triangle. each triangle has a hexadecimal word with 23 digits. this word points to a spesific triangle.
hexadecimal triangle
0 000 00000 0000000 000000000 00000000000 0000000000000 000000000000000 00000000000000000 0000000000000000000 000000000000000000000 00000000000000000000000
(and so on)this is the triangle. there is a pointer that points to the layer thats being modified. each digit can be any number from 0-f
operations/ISA
there is a few stupid commands:
MJMP
: jump to the triangle with the word equal to the current row with trailing 0's for all the missing widthMV
: move down as many rows as whats the current row is equal toLWJ
goto the word to the leftRR
: reverse the current rowSHL
: do the current row SHL the row belowMT
: set the current row to a string off
's if its more than the row below else set it to a string of0
'sCJMP
: jump back as many chars as the row below if the row above is more than 0ETTAO
: encrypts the current row to ascii using the nibble table(each pair of nibbles in the current row)IBRB
: increment current row by the row belowIBO
: increment current row by 1DBO
: decrement current row by 1ONMW
: output the current row encrypted or notRIS
: if the current row is ascii encrypted reverse the stringSRTFSUOC
: set the current row to the following chars(needs to be of the same width as current row) until the next commandOANO
: a no-opDFAIAOITES
: if current row is encrypted to ascii decrypt it
notes
- the pointer points to a row
- there is another pointer that points to a word
- there are infinitely many words extending to the left
- on the table at (c:B, r:9) there is a space but at (c:B, r:A) there is nothing or a unprintable char. and at (c:C, r:C) there is a space after the t