Removing files from data analysis directory
[ou-summer-of-code-2017.git] / 07-interpreter / instructions.md
1 | Instruction | Description |
2 |:------------|:------------|
3 | `inc r` | increment contents of register `r` |
4 | `dec r` | decrement contents of register `r` |
5 | `set r i` | set contents of register `r` to literal value `i` |
6 | `cpy r s` | set contents of register `r` into register `s` |
7 | `sto r m` | store contents of register `r` into memory location `m` |
8 | `ld r m` | load contents of memory location `m` into register `r` |
9 | `jmp i` | jump to instruction `i` places forward |
10 | `jpz r i` | jump to instruction `i` places forward if<br>register `r` contains zero, otherwise continue to next instruction |
11