Difference between revisions of "Simple Computer Simulator Instruction-Set"
Line 1: | Line 1: | ||
--[[User:Thiebaut|D. Thiebaut]] ([[User talk:Thiebaut|talk]]) 16:57, 26 August 2014 (EDT) | --[[User:Thiebaut|D. Thiebaut]] ([[User talk:Thiebaut|talk]]) 16:57, 26 August 2014 (EDT) | ||
---- | ---- | ||
− | {| | + | {| class="wikitable" |
− | ! Instruction | + | ! Instruction |
− | ! Code (decimal) | + | ! Code<br />(decimal) |
− | ! Code( binary) | + | ! Code<br />( binary) |
! Description | ! Description | ||
|- | |- | ||
− | | | + | | width="20%" |
ADD | ADD | ||
− | | | + | | width="15%" |
24 | 24 | ||
− | | | + | | width="15%" |
00011000 | 00011000 | ||
− | | | + | | width="50%" |
* | * | ||
|- | |- |
Revision as of 16:11, 26 August 2014
--D. Thiebaut (talk) 16:57, 26 August 2014 (EDT)
Instruction | Code (decimal) |
Code ( binary) |
Description |
---|---|---|---|
width="20%"
ADD |
width="15%"
24 |
width="15%"
00011000 |
width="50%"
|
ADDX |
28 |
00011100 |
|
ADDXm |
30 |
00011110 |
|
ADDXx |
29 |
00011101 |
|
ADDm |
26 |
00011010 |
|
ADDx |
25 |
00011001 |
|
COMP |
84 |
01010100 |
|
COMPX |
92 |
01011100 |
|
COMPXm |
94 |
01011110 |
|
COMPXx |
93 |
01011101 |
|
COMPm |
86 |
01010110 |
|
COMPx |
85 |
01010101 |
|
DIV |
44 |
00101100 |
|
DIVm |
46 |
00101110 |
|
DIVx |
45 |
00101101 |
|
HALT |
127 |
01111111 |
|
JEQ |
68 |
01000100 |
|
JLT |
72 |
01001000 |
|
JUMP |
64 |
01000000 |
|
LOAD |
4 |
00000100 |
|
LOADX |
8 |
00001000 |
|
LOADXm |
10 |
00001010 |
|
LOADXx |
9 |
00001001 |
|
LOADm |
6 |
00000110 |
|
LOADx |
5 |
00000101 |
|
MUL |
40 |
00101000 |
|
MULm |
42 |
00101010 |
|
MULx |
41 |
00101001 |
|
NOP |
0 |
00000000 |
|
STOREXm |
22 |
00010110 |
|
STOREXx |
21 |
00010101 |
|
STOREm |
18 |
00010010 |
|
STOREx |
17 |
00010001 |
|
SUB |
32 |
00100000 |
|
SUBX |
36 |
00100100 |
|
SUBXm |
38 |
00100110 |
|
SUBXx |
37 |
00100101 |
|
SUBm |
34 |
00100010 |
|
SUBx |
33 |
00100001 |
|
TAX |
79 |
01001111 |
|
TXA |
83 |
01010011 |
|