twasm
Jump to navigation
Jump to search
twasm is a cpu assembly with 4 instructions
| opcode | binary code | arguments | action |
|---|---|---|---|
| halt | 00 | none | halts the processor |
| jinz | 01 | addr1, addr2 | jumps execution to addr2 if the value at addr1 is not zero |
| copy | 11 | addr1, addr2 | copies the value at addr1 to addr2 |
| nand | 10 | addr1, addr2 | copies the value of addr1 nand the value of addr2 to addr1 |
the graphics pane has not been defined yet so there are no programs here