NibbleComputation
Jump to navigation
Jump to search
A small language by User:A()
Commands
| Header text | Header text |
|---|---|
| [n1.n] | nibble 1 is n |
| ![n1.n2.n3] | compare two nibbles and send result to n3 |
| > | shift bits right |
| < | shift bits left |
| @[n1.l] | if n1 is greater than 0 then jump to label l |
| +[n1.n2.n3] | add two nibbles and send result to n3 |
Programs
Truth-machine
[1,i] # input
[2,0000]
Comp ![1.2.3]
@[1.Comp]