Removing files from data analysis directory
[ou-summer-of-code-2017.git] / 07-interpreter / instructions.html
1 <table style="width:39%;">
2 <colgroup>
3 <col width="19%" />
4 <col width="19%" />
5 </colgroup>
6 <thead>
7 <tr class="header">
8 <th align="left">Instruction</th>
9 <th align="left">Description</th>
10 </tr>
11 </thead>
12 <tbody>
13 <tr class="odd">
14 <td align="left"><code>inc r</code></td>
15 <td align="left">increment contents of register <code>r</code></td>
16 </tr>
17 <tr class="even">
18 <td align="left"><code>dec r</code></td>
19 <td align="left">decrement contents of register <code>r</code></td>
20 </tr>
21 <tr class="odd">
22 <td align="left"><code>set r i</code></td>
23 <td align="left">set contents of register <code>r</code> to literal value <code>i</code></td>
24 </tr>
25 <tr class="even">
26 <td align="left"><code>cpy r s</code></td>
27 <td align="left">set contents of register <code>r</code> into register <code>s</code></td>
28 </tr>
29 <tr class="odd">
30 <td align="left"><code>sto r m</code></td>
31 <td align="left">store contents of register <code>r</code> into memory location <code>m</code></td>
32 </tr>
33 <tr class="even">
34 <td align="left"><code>ld r m</code></td>
35 <td align="left">load contents of memory location <code>m</code> into register <code>r</code></td>
36 </tr>
37 <tr class="odd">
38 <td align="left"><code>jmp i</code></td>
39 <td align="left">jump to instruction <code>i</code> places forward</td>
40 </tr>
41 <tr class="even">
42 <td align="left"><code>jpz r i</code></td>
43 <td align="left">jump to instruction <code>i</code> places forward if<br>register <code>r</code> contains zero, otherwise continue to next instruction</td>
44 </tr>
45 </tbody>
46 </table>