Skip to content

Commit

Permalink
Add MOVE opcode. (#158)
Browse files Browse the repository at this point in the history
  • Loading branch information
adlerjohn authored May 5, 2021
1 parent b431102 commit 475ba5c
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions specs/vm/opcodes.md
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,22 @@ If `imm == 0`, both `$rA` and `$of` are cleared and `$err` is set to `true`.

Otherwise, `$of` and `$err` are cleared.

### MOVE: Move

| | |
|-------------|------------------------------------|
| Description | Copy from one register to another. |
| Operation | ```$rA = $rB;``` |
| Syntax | `move $rA, $rB` |
| Encoding | `0x00 rA rB - -` |
| Notes | |

Panic if:

- `$rA` is a [reserved register](./main.md#semantics)

`$of` and `$err` are cleared.

### MUL: Multiply

| | |
Expand Down

0 comments on commit 475ba5c

Please # to comment.