User:Zarutian/Smallcaps
From Erights
(Difference between revisions)
(Notes on smallcaps) |
m (Adding to the notes) |
||
Line 5: | Line 5: | ||
The opcodes are: | The opcodes are: | ||
- | Hex Memnomic | + | Hex Memnomic Effects |
- | + | ||
- | 0x1 OP_DUP | + | 0x1 OP_DUP [x],[] => OP_DUP => [x, x],[] |
- | 0x2 OP_POP | + | 0x2 OP_POP [x],[] => OP_POP => [],[] |
- | 0x3 OP_SWAP | + | 0x3 OP_SWAP [x, y],[] => OP_SWAP => [y, x],[] |
- | 0x4 OP_ROT | + | 0x4 OP_ROT [x, y, z],[] => OP_ROT => [y, z, x],[] |
- | 0x5 OP_RETURN | + | 0x5 OP_RETURN [x],[] => OP_RETURN |
+ | |||
+ | 0x8 OP_JUMP [],[] => OP_JUMP(label) => [],[] | ||
+ | label := ?Waterken Whole num? | ||
+ | 0x9 OP_BRANCH [ootEjector, flag],[] => OP_BRANCH => [],[] | ||
+ | 0xA OP_CALL_ONLY [recip, args...],[] => OP_CALL_ONLY(verb, arity) => [],[] | ||
+ | 0xB OP_CALL [recip, args...],[] => OP_CALL(verb, arity) => [result],[] |
Revision as of 16:57, 30 January 2010
Notes of what I have cleaned from the incomplete spefication and implementation of Smallcaps.
Smallcaps is a bytecode based format of executable code.
The opcodes are:
Hex Memnomic Effects 0x1 OP_DUP [x],[] => OP_DUP => [x, x],[] 0x2 OP_POP [x],[] => OP_POP => [],[] 0x3 OP_SWAP [x, y],[] => OP_SWAP => [y, x],[] 0x4 OP_ROT [x, y, z],[] => OP_ROT => [y, z, x],[] 0x5 OP_RETURN [x],[] => OP_RETURN 0x8 OP_JUMP [],[] => OP_JUMP(label) => [],[] label := ?Waterken Whole num? 0x9 OP_BRANCH [ootEjector, flag],[] => OP_BRANCH => [],[] 0xA OP_CALL_ONLY [recip, args...],[] => OP_CALL_ONLY(verb, arity) => [],[] 0xB OP_CALL [recip, args...],[] => OP_CALL(verb, arity) => [result],[]