-
Notifications
You must be signed in to change notification settings - Fork 1
/
instset.htm
150 lines (148 loc) · 4.27 KB
/
instset.htm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
<!DOCTYPE html>
<html>
<head>
<font color="#FFFF00">
<meta name="author" content="Mark Craig">
<meta name="description" content="My CPU Instruction Set">
<!-- meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-8"-->
<!-- meta http-equiv="Content-Type" content="text/html;charset=UTF-8" -->
<!-- meta charset="UTF-8"-->
<meta charset="ISO-8859-8">
</head>
<style>
body {
background-color: #101752;
text-shadow: 3px 3px 2px #000000;
}
h1 {
color: #0000FF;
background-color: #a4d7ff;
}
h2 {
color: #FF0000;
background-color: #a4d7ff;
}
table {
display: table;
border-collapse: separate;
border-spacing: 2px;
border-color: grey;
}
</style>
<body bgcolor="#002374">
<!--font face="Times New Roman" size="+2"--!>
<!--font face="Bangle" size="+2"--!>
<!--font face="Courier" size="+2"--!>
<!--font face="Courier New" size="+2"--!>
<!--font face="Sylfaen" size="+2"--!>
<!--font face="Typist" size="+2"--!>
<font face="Courier New" size="+2">
<div class="container">
<center>
<TABLE BORDER=2 bgcolor="#6080c8" VALIGN=center CELLPADDING=4>
<TR>
<TH ALIGN=center><b> OpCode </b></TD>
<TH ALIGN=center><b>Instruction</b></TD>
<TH ALIGN=center><b>Function</b></TD>
</TR>
<TR>
<TD ALIGN=center><b>0</b></TD>
<TD ALIGN=left><b> LOAD I</b></TD>
<TD ALIGN=left><b> Y ⇦ Z</b></TD>
<!--TD ALIGN=left><b> Y <- Z</b></TD--!>
<!--TD ALIGN=left><b> Y ← Z</b></TD--!>
</TR>
<TR>
<TD ALIGN=center><b>1</b></TD>
<TD ALIGN=left><b> LOAD</b></TD>
<TD ALIGN=left><b> Y ⇦ M(Z)</b></TD>
<!--TD ALIGN=left><b> Y <- M(Z)</b></TD--!>
</TR>
<TR>
<TD ALIGN=center><b>2</b></TD>
<TD ALIGN=left><b> STORE I</b></TD>
<TD ALIGN=left><b> M(Z) ⇦ Y</b></TD>
<!--TD ALIGN=left><b> M(Z) <- Y</b></TD--!>
</TR>
<TR>
<TD ALIGN=center><b>3</b></TD>
<TD ALIGN=left><b> STORE</b></TD>
<TD ALIGN=left><b> A ⇦ M(Y), Z ⇦ M(A)</b></TD>
<!--TD ALIGN=left><b> A <- M(Y), Z <- M(A)</b></TD--!>
</TR>
<TR>
<TD ALIGN=center><b>4</b></TD>
<TD ALIGN=left><b> ADD I</b></TD>
<TD ALIGN=left><b> Y ⇦ Y + Z</b></TD>
<!--TD ALIGN=left><b> Y <- Y + Z</b></TD--!>
</TR>
<TR>
<TD ALIGN=center><b>5</b></TD>
<TD ALIGN=left><b> ADD</b></TD>
<TD ALIGN=left><b> Y ⇦ Y + M(Z)</b></TD>
<!--TD ALIGN=left><b> Y <- Y + M(Z)</b></TD--!>
</TR>
<TR>
<TD ALIGN=center><b>6</b></TD>
<TD ALIGN=left><b> SUB I</b></TD>
<TD ALIGN=left><b> Y ⇦ Y - Z</b></TD>
<!--TD ALIGN=left><b> Y <- Y - Z</b></TD--!>
</TR>
<TR>
<TD ALIGN=center><b>7</b></TD>
<TD ALIGN=left><b> SUB</b></TD>
<TD ALIGN=left><b> Y ⇦ Y - M(Z)</b></TD>
<!--TD ALIGN=left><b> Y <- Y - M(Z)</b></TD--!>
</TR>
<TR>
<TD ALIGN=center><b>8</b></TD>
<TD ALIGN=left><b> JUMP</b></TD>
<TD ALIGN=left><b> PC ⇦ Z</b></TD>
<!--TD ALIGN=left><b> PC <- Z</b></TD--!>
</TR>
<TR>
<TD ALIGN=center><b>9</b></TD>
<TD ALIGN=left><b> JUMP I (indirect)</b></TD>
<TD ALIGN=left><b> PC ⇦ M(Z)</b></TD>
<!--TD ALIGN=left><b> PC <- M(Z)</b></TD--!>
</TR>
<TR>
<TD ALIGN=center><b>10</b></TD>
<TD ALIGN=left><b> JUMP II (ind.-ind.) </b></TD>
<TD ALIGN=left><b> A ⇦ M(Z), PC ⇦ M(A)</b></TD>
<!--TD ALIGN=left><b> A <- M(Z), PC <- M(A)</b></TD--!>
</TR>
<TR>
<TD ALIGN=center><b>11</b></TD>
<TD ALIGN=left><b> DATA IN</b></TD>
<TD ALIGN=left><b> Y ⇦ external data</b></TD>
<!--TD ALIGN=left><b> Y <- external data</b></TD--!>
</TR>
<TR>
<TD ALIGN=center><b>12</b></TD>
<TD ALIGN=left><b> HALT</b></TD>
<TD ALIGN=left><b> Stop running</b></TD>
</TR>
<TR>
<TD ALIGN=center><b>13</b></TD>
<TD ALIGN=left><b> SKIPNEG</b></TD>
<TD ALIGN=left><b> If Y is negative, PC ⇦ PC + 1 </b></TD>
<!--TD ALIGN=left><b> If Y is negative, PC <- PC + 1 </b></TD--!>
</TR>
<TR>
<TD ALIGN=center><b>14</b></TD>
<TD ALIGN=left><b> STROBE</b></TD>
<TD ALIGN=left><b> Generate STROBE pulse</b></TD>
</TR>
<TR>
<TD ALIGN=center><b>15</b></TD>
<TD ALIGN=left><b> NOOP</b></TD>
<TD ALIGN=left><b> No Operation</b></TD>
</TR>
</TABLE>
</center>
</font>
</div>
</body>
</font>
</html>