Merge branch 'master' of https://github.com/MasterQ32/DasOS
This commit is contained in:
commit
68fef1055c
1 changed files with 19 additions and 18 deletions
|
@ -1,4 +1,4 @@
|
||||||
# SuperVM
|
# SuperVM
|
||||||
|
|
||||||
SuperVM is a stack machine with a simple, but flexible command
|
SuperVM is a stack machine with a simple, but flexible command
|
||||||
set.
|
set.
|
||||||
|
@ -213,23 +213,24 @@ The math command is a compound operator that contains all
|
||||||
ALU operations. The ALU operation is selected
|
ALU operations. The ALU operation is selected
|
||||||
by the `cmdinfo`.
|
by the `cmdinfo`.
|
||||||
|
|
||||||
| cmdinfo | Operation |
|
| cmdinfo | Operation | Forumla |
|
||||||
|---------|-----------------------------|
|
|---------|-----------------------------|-----------------|
|
||||||
| 0 | Addition |
|
| 0 | Addition | input1 + input0 |
|
||||||
| 1 | Subtraction |
|
| 1 | Subtraction | input1 - input0 |
|
||||||
| 2 | Multiplication |
|
| 2 | Multiplication | input1 * input0 |
|
||||||
| 3 | Division |
|
| 3 | Division | input1 / input0 |
|
||||||
| 4 | Euclidean Division / Modulo |
|
| 4 | Euclidean Division / Modulo | input1 % input0 |
|
||||||
| 5 | Bitwise Logic And |
|
| 5 | Bitwise Logic And | input1 ∧ input0 |
|
||||||
| 6 | Bitwise Logic Or |
|
| 6 | Bitwise Logic Or | input1 ∨ input0 |
|
||||||
| 7 | Bitwise Logic Xor |
|
| 7 | Bitwise Logic Xor | input1 ⊻ input0 |
|
||||||
| 8 | Bitwise Logic Not |
|
| 8 | Bitwise Logic Not | ˜input0 |
|
||||||
| 9 | Rotating Bit Shift Left |
|
| 9 | Rotating Bit Shift Left | input1 ⊲ input0 |
|
||||||
| 10 | Rotating Bit Shift Right |
|
| 10 | Rotating Bit Shift Right | input1 ⊳ input0 |
|
||||||
| 11 | Arithmetic Bit Shift Left |
|
| 11 | Arithmetic Bit Shift Left | input1 ≺ input0 |
|
||||||
| 12 | Arithmetic Bit Shift Right |
|
| 12 | Arithmetic Bit Shift Right | input1 ≻ input0 |
|
||||||
| 13 | Logic Bit Shift Left |
|
| 13 | Logic Bit Shift Left | input1 « input0 |
|
||||||
| 14 | Logic Bit Shift Right |
|
| 14 | Logic Bit Shift Right | input1 » input0 |
|
||||||
|
| 15 | Negation | -input0 |
|
||||||
|
|
||||||
#### SpGet, SpSet
|
#### SpGet, SpSet
|
||||||
These commands modify the stack pointer directly.
|
These commands modify the stack pointer directly.
|
||||||
|
|
Loading…
Reference in a new issue