- Move instruction (
xxyy): Sets RAM(
yy. Whitespace is allowed after a move instruction.
- Pointer instruction (
*zz): Gets RAM(
zz). This is stackable and can be used as the input of a move instruction.
There are 256 bytes of RAM in TwoFiftyFive. In order to do computation, some indexes of RAM are memory mapped.
|FF||Instruction pointer. Incremented after every move instruction unless changed. (Only 256 instructions per program)|
|FE||NAND Input A.|
|FD||NAND Input B.|
|FC||Hardwired to RAM(FE) NAND RAM(FD). Read only.|
|FB||Stack I/O (Pushes to stack on set, pops from stack on read)|
|FA||Program I/O (Outputs on set, inputs on read)|
|F9||Reserved for memory extension.|
FA48 FA65 FA6C FA6C FA6F FA2C FA20 FA57 FA6F FA72 FA6C FA64 FA21 FF0D
48 65 6C 6C 6F 2C 20 57 6F 72 6C 64 21 (Hex) Hello, World! (UTF8)
Cat program (EOF=FF)
0005 FE*FA FA*FE FD*FE FF*FC FF05
64 75 FF
64 75 FF
TwoFiftyFive is currently almost unusable for computation until the memory extension is made (coming soon).