1 (**************************************************************************)
4 (* ||A|| A project by Andrea Asperti *)
6 (* ||I|| Developers: *)
7 (* ||T|| The HELM team. *)
8 (* ||A|| http://helm.cs.unibo.it *)
10 (* \ / This file is distributed under the terms of the *)
11 (* v GNU General Public License Version 2 *)
13 (**************************************************************************)
15 (* ********************************************************************** *)
16 (* Progetto FreeScale *)
18 (* Sviluppato da: Ing. Cosimo Oliboni, oliboni@cs.unibo.it *)
19 (* Sviluppo: 2008-2010 *)
21 (* ********************************************************************** *)
23 include "emulator/opcodes/IP2022_pseudo.ma".
24 include "emulator/opcodes/IP2022_instr_mode.ma".
25 include "emulator/opcodes/byte_or_word.ma".
26 include "common/list.ma".
28 (* ******************* *)
29 (* TABELLA DELL'IP2022 *)
30 (* ******************* *)
32 (* definizione come concatenazione finale di liste per velocizzare il parsing *)
33 (* ogni riga e' [pseudo] [modalita' indirizzamento] [opcode esadecimale] [#cicli esecuzione] *)
35 ndefinition opcode_table_IP2022_1 ≝
37 quadruple … ADD MODE_FR0_and_W (Byte 〈x1,xE〉) nat1
38 ; quadruple … ADD MODE_FR1_and_W (Byte 〈x1,xF〉) nat1
39 ; quadruple … ADD MODE_W_and_FR0 (Byte 〈x1,xC〉) nat1
40 ; quadruple … ADD MODE_W_and_FR1 (Byte 〈x1,xD〉) nat1
41 ; quadruple … ADD MODE_IMM8 (Byte 〈x7,xB〉) nat1
44 ndefinition opcode_table_IP2022_2 ≝
46 quadruple … ADDC MODE_FR0_and_W (Byte 〈x5,xE〉) nat1
47 ; quadruple … ADDC MODE_FR1_and_W (Byte 〈x5,xF〉) nat1
48 ; quadruple … ADDC MODE_W_and_FR0 (Byte 〈x5,xC〉) nat1
49 ; quadruple … ADDC MODE_W_and_FR1 (Byte 〈x5,xD〉) nat1
52 ndefinition opcode_table_IP2022_3 ≝
54 quadruple … AND MODE_FR0_and_W (Byte 〈x1,x6〉) nat1
55 ; quadruple … AND MODE_FR1_and_W (Byte 〈x1,x7〉) nat1
56 ; quadruple … AND MODE_W_and_FR0 (Byte 〈x1,x4〉) nat1
57 ; quadruple … AND MODE_W_and_FR1 (Byte 〈x1,x5〉) nat1
58 ; quadruple … AND MODE_IMM8 (Byte 〈x7,xE〉) nat1
61 ndefinition opcode_table_IP2022_4 ≝
63 quadruple … BREAK MODE_INH (Word 〈〈x0,x0〉:〈x0,x1〉〉) nat1
64 ; quadruple … BREAKX MODE_INH (Word 〈〈x0,x0〉:〈x0,x5〉〉) nat1
65 ; quadruple … CWDT MODE_INH (Word 〈〈x0,x0〉:〈x0,x4〉〉) nat1
66 ; quadruple … FERASE MODE_INH (Word 〈〈x0,x0〉:〈x0,x3〉〉) nat1
67 ; quadruple … FREAD MODE_INH (Word 〈〈x0,x0〉:〈x1,xB〉〉) nat1
68 ; quadruple … FWRITE MODE_INH (Word 〈〈x0,x0〉:〈x1,xA〉〉) nat1
69 ; quadruple … INT MODE_INH (Word 〈〈x0,x0〉:〈x0,x6〉〉) nat3
70 ; quadruple … IREAD MODE_INHADDR (Word 〈〈x0,x0〉:〈x1,x9〉〉) nat4 (* only blocking implemented *)
71 ; quadruple … IREAD MODE_INHADDRpp (Word 〈〈x0,x0〉:〈x1,xD〉〉) nat4 (* only blocking implemented *)
72 ; quadruple … IWRITE MODE_INHADDR (Word 〈〈x0,x0〉:〈x1,x8〉〉) nat4 (* only blocking implemented *)
73 ; quadruple … IWRITE MODE_INHADDRpp (Word 〈〈x0,x0〉:〈x1,xC〉〉) nat4 (* only blocking implemented *)
74 ; quadruple … NOP MODE_INH (Word 〈〈x0,x0〉:〈x0,x0〉〉) nat1
75 ; quadruple … RET MODE_INH (Word 〈〈x0,x0〉:〈x0,x7〉〉) nat3
76 ; quadruple … RETNP MODE_INH (Word 〈〈x0,x0〉:〈x0,x2〉〉) nat3
79 ndefinition opcode_table_IP2022_5 ≝
81 quadruple … CALL (MODE_IMM13 t00) (Byte 〈xC,x0〉) nat3
82 ; quadruple … CALL (MODE_IMM13 t01) (Byte 〈xC,x1〉) nat3
83 ; quadruple … CALL (MODE_IMM13 t02) (Byte 〈xC,x2〉) nat3
84 ; quadruple … CALL (MODE_IMM13 t03) (Byte 〈xC,x3〉) nat3
85 ; quadruple … CALL (MODE_IMM13 t04) (Byte 〈xC,x4〉) nat3
86 ; quadruple … CALL (MODE_IMM13 t05) (Byte 〈xC,x5〉) nat3
87 ; quadruple … CALL (MODE_IMM13 t06) (Byte 〈xC,x6〉) nat3
88 ; quadruple … CALL (MODE_IMM13 t07) (Byte 〈xC,x7〉) nat3
89 ; quadruple … CALL (MODE_IMM13 t08) (Byte 〈xC,x8〉) nat3
90 ; quadruple … CALL (MODE_IMM13 t09) (Byte 〈xC,x9〉) nat3
91 ; quadruple … CALL (MODE_IMM13 t0A) (Byte 〈xC,xA〉) nat3
92 ; quadruple … CALL (MODE_IMM13 t0B) (Byte 〈xC,xB〉) nat3
93 ; quadruple … CALL (MODE_IMM13 t0C) (Byte 〈xC,xC〉) nat3
94 ; quadruple … CALL (MODE_IMM13 t0D) (Byte 〈xC,xD〉) nat3
95 ; quadruple … CALL (MODE_IMM13 t0E) (Byte 〈xC,xE〉) nat3
96 ; quadruple … CALL (MODE_IMM13 t0F) (Byte 〈xC,xF〉) nat3
97 ; quadruple … CALL (MODE_IMM13 t10) (Byte 〈xD,x0〉) nat3
98 ; quadruple … CALL (MODE_IMM13 t11) (Byte 〈xD,x1〉) nat3
99 ; quadruple … CALL (MODE_IMM13 t12) (Byte 〈xD,x2〉) nat3
100 ; quadruple … CALL (MODE_IMM13 t13) (Byte 〈xD,x3〉) nat3
101 ; quadruple … CALL (MODE_IMM13 t14) (Byte 〈xD,x4〉) nat3
102 ; quadruple … CALL (MODE_IMM13 t15) (Byte 〈xD,x5〉) nat3
103 ; quadruple … CALL (MODE_IMM13 t16) (Byte 〈xD,x6〉) nat3
104 ; quadruple … CALL (MODE_IMM13 t17) (Byte 〈xD,x7〉) nat3
105 ; quadruple … CALL (MODE_IMM13 t18) (Byte 〈xD,x8〉) nat3
106 ; quadruple … CALL (MODE_IMM13 t19) (Byte 〈xD,x9〉) nat3
107 ; quadruple … CALL (MODE_IMM13 t1A) (Byte 〈xD,xA〉) nat3
108 ; quadruple … CALL (MODE_IMM13 t1B) (Byte 〈xD,xB〉) nat3
109 ; quadruple … CALL (MODE_IMM13 t1C) (Byte 〈xD,xC〉) nat3
110 ; quadruple … CALL (MODE_IMM13 t1D) (Byte 〈xD,xD〉) nat3
111 ; quadruple … CALL (MODE_IMM13 t1E) (Byte 〈xD,xE〉) nat3
112 ; quadruple … CALL (MODE_IMM13 t1F) (Byte 〈xD,xF〉) nat3
115 ndefinition opcode_table_IP2022_6 ≝
117 quadruple … CLR MODE_FR0_and_W (Byte 〈x0,x6〉) nat1
118 ; quadruple … CLR MODE_FR1_and_W (Byte 〈x0,x7〉) nat1
121 ndefinition opcode_table_IP2022_7 ≝
123 quadruple … CLRB (MODE_FR0n o0) (Byte 〈x8,x0〉) nat1
124 ; quadruple … CLRB (MODE_FR1n o0) (Byte 〈x8,x1〉) nat1
125 ; quadruple … CLRB (MODE_FR0n o1) (Byte 〈x8,x2〉) nat1
126 ; quadruple … CLRB (MODE_FR1n o1) (Byte 〈x8,x3〉) nat1
127 ; quadruple … CLRB (MODE_FR0n o2) (Byte 〈x8,x4〉) nat1
128 ; quadruple … CLRB (MODE_FR1n o2) (Byte 〈x8,x5〉) nat1
129 ; quadruple … CLRB (MODE_FR0n o3) (Byte 〈x8,x6〉) nat1
130 ; quadruple … CLRB (MODE_FR1n o3) (Byte 〈x8,x7〉) nat1
131 ; quadruple … CLRB (MODE_FR0n o4) (Byte 〈x8,x8〉) nat1
132 ; quadruple … CLRB (MODE_FR1n o4) (Byte 〈x8,x9〉) nat1
133 ; quadruple … CLRB (MODE_FR0n o5) (Byte 〈x8,xA〉) nat1
134 ; quadruple … CLRB (MODE_FR1n o5) (Byte 〈x8,xB〉) nat1
135 ; quadruple … CLRB (MODE_FR0n o6) (Byte 〈x8,xC〉) nat1
136 ; quadruple … CLRB (MODE_FR1n o6) (Byte 〈x8,xD〉) nat1
137 ; quadruple … CLRB (MODE_FR0n o7) (Byte 〈x8,xE〉) nat1
138 ; quadruple … CLRB (MODE_FR1n o7) (Byte 〈x8,xF〉) nat1
141 ndefinition opcode_table_IP2022_8 ≝
143 quadruple … CMP MODE_W_and_FR0 (Byte 〈x0,x4〉) nat1
144 ; quadruple … CMP MODE_W_and_FR1 (Byte 〈x0,x5〉) nat1
145 ; quadruple … CMP MODE_IMM8 (Byte 〈x7,x9〉) nat1
148 ndefinition opcode_table_IP2022_9 ≝
150 quadruple … CSE MODE_W_and_FR0 (Byte 〈x4,x2〉) nat1
151 ; quadruple … CSE MODE_W_and_FR1 (Byte 〈x4,x3〉) nat1
152 ; quadruple … CSE MODE_IMM8 (Byte 〈x7,x7〉) nat1
155 ndefinition opcode_table_IP2022_10 ≝
157 quadruple … CSNE MODE_W_and_FR0 (Byte 〈x4,x0〉) nat1
158 ; quadruple … CSNE MODE_W_and_FR1 (Byte 〈x4,x1〉) nat1
159 ; quadruple … CSNE MODE_IMM8 (Byte 〈x7,x6〉) nat1
162 ndefinition opcode_table_IP2022_11 ≝
164 quadruple … DEC MODE_FR0_and_W (Byte 〈x0,xE〉) nat1
165 ; quadruple … DEC MODE_FR1_and_W (Byte 〈x0,xF〉) nat1
166 ; quadruple … DEC MODE_W_and_FR0 (Byte 〈x0,xC〉) nat1
167 ; quadruple … DEC MODE_W_and_FR1 (Byte 〈x0,xD〉) nat1
170 ndefinition opcode_table_IP2022_12 ≝
172 quadruple … DECSNZ MODE_FR0_and_W (Byte 〈x4,xE〉) nat1
173 ; quadruple … DECSNZ MODE_FR1_and_W (Byte 〈x4,xF〉) nat1
174 ; quadruple … DECSNZ MODE_W_and_FR0 (Byte 〈x4,xC〉) nat1
175 ; quadruple … DECSNZ MODE_W_and_FR1 (Byte 〈x4,xD〉) nat1
178 ndefinition opcode_table_IP2022_13 ≝
180 quadruple … DECSZ MODE_FR0_and_W (Byte 〈x2,xE〉) nat1
181 ; quadruple … DECSZ MODE_FR1_and_W (Byte 〈x2,xF〉) nat1
182 ; quadruple … DECSZ MODE_W_and_FR0 (Byte 〈x2,xC〉) nat1
183 ; quadruple … DECSZ MODE_W_and_FR1 (Byte 〈x2,xD〉) nat1
186 ndefinition opcode_table_IP2022_14 ≝
188 quadruple … INC MODE_FR0_and_W (Byte 〈x2,xA〉) nat1
189 ; quadruple … INC MODE_FR1_and_W (Byte 〈x2,xB〉) nat1
190 ; quadruple … INC MODE_W_and_FR0 (Byte 〈x2,x8〉) nat1
191 ; quadruple … INC MODE_W_and_FR1 (Byte 〈x2,x9〉) nat1
194 ndefinition opcode_table_IP2022_15 ≝
196 quadruple … INCSNZ MODE_FR0_and_W (Byte 〈x5,xA〉) nat1
197 ; quadruple … INCSNZ MODE_FR1_and_W (Byte 〈x5,xB〉) nat1
198 ; quadruple … INCSNZ MODE_W_and_FR0 (Byte 〈x5,x8〉) nat1
199 ; quadruple … INCSNZ MODE_W_and_FR1 (Byte 〈x5,x9〉) nat1
202 ndefinition opcode_table_IP2022_16 ≝
204 quadruple … INCSZ MODE_FR0_and_W (Byte 〈x3,xE〉) nat1
205 ; quadruple … INCSZ MODE_FR1_and_W (Byte 〈x3,xF〉) nat1
206 ; quadruple … INCSZ MODE_W_and_FR0 (Byte 〈x3,xC〉) nat1
207 ; quadruple … INCSZ MODE_W_and_FR1 (Byte 〈x3,xD〉) nat1
210 ndefinition opcode_table_IP2022_17 ≝
212 quadruple … JMP (MODE_IMM13 t00) (Byte 〈xE,x0〉) nat3
213 ; quadruple … JMP (MODE_IMM13 t01) (Byte 〈xE,x1〉) nat3
214 ; quadruple … JMP (MODE_IMM13 t02) (Byte 〈xE,x2〉) nat3
215 ; quadruple … JMP (MODE_IMM13 t03) (Byte 〈xE,x3〉) nat3
216 ; quadruple … JMP (MODE_IMM13 t04) (Byte 〈xE,x4〉) nat3
217 ; quadruple … JMP (MODE_IMM13 t05) (Byte 〈xE,x5〉) nat3
218 ; quadruple … JMP (MODE_IMM13 t06) (Byte 〈xE,x6〉) nat3
219 ; quadruple … JMP (MODE_IMM13 t07) (Byte 〈xE,x7〉) nat3
220 ; quadruple … JMP (MODE_IMM13 t08) (Byte 〈xE,x8〉) nat3
221 ; quadruple … JMP (MODE_IMM13 t09) (Byte 〈xE,x9〉) nat3
222 ; quadruple … JMP (MODE_IMM13 t0A) (Byte 〈xE,xA〉) nat3
223 ; quadruple … JMP (MODE_IMM13 t0B) (Byte 〈xE,xB〉) nat3
224 ; quadruple … JMP (MODE_IMM13 t0C) (Byte 〈xE,xC〉) nat3
225 ; quadruple … JMP (MODE_IMM13 t0D) (Byte 〈xE,xD〉) nat3
226 ; quadruple … JMP (MODE_IMM13 t0E) (Byte 〈xE,xE〉) nat3
227 ; quadruple … JMP (MODE_IMM13 t0F) (Byte 〈xE,xF〉) nat3
228 ; quadruple … JMP (MODE_IMM13 t10) (Byte 〈xF,x0〉) nat3
229 ; quadruple … JMP (MODE_IMM13 t11) (Byte 〈xF,x1〉) nat3
230 ; quadruple … JMP (MODE_IMM13 t12) (Byte 〈xF,x2〉) nat3
231 ; quadruple … JMP (MODE_IMM13 t13) (Byte 〈xF,x3〉) nat3
232 ; quadruple … JMP (MODE_IMM13 t14) (Byte 〈xF,x4〉) nat3
233 ; quadruple … JMP (MODE_IMM13 t15) (Byte 〈xF,x5〉) nat3
234 ; quadruple … JMP (MODE_IMM13 t16) (Byte 〈xF,x6〉) nat3
235 ; quadruple … JMP (MODE_IMM13 t17) (Byte 〈xF,x7〉) nat3
236 ; quadruple … JMP (MODE_IMM13 t18) (Byte 〈xF,x8〉) nat3
237 ; quadruple … JMP (MODE_IMM13 t19) (Byte 〈xF,x9〉) nat3
238 ; quadruple … JMP (MODE_IMM13 t1A) (Byte 〈xF,xA〉) nat3
239 ; quadruple … JMP (MODE_IMM13 t1B) (Byte 〈xF,xB〉) nat3
240 ; quadruple … JMP (MODE_IMM13 t1C) (Byte 〈xF,xC〉) nat3
241 ; quadruple … JMP (MODE_IMM13 t1D) (Byte 〈xF,xD〉) nat3
242 ; quadruple … JMP (MODE_IMM13 t1E) (Byte 〈xF,xE〉) nat3
243 ; quadruple … JMP (MODE_IMM13 t1F) (Byte 〈xF,xF〉) nat3
246 ndefinition opcode_table_IP2022_18 ≝
248 quadruple … LOADH MODE_IMM8 (Byte 〈x7,x0〉) nat1
249 ; quadruple … LOADL MODE_IMM8 (Byte 〈x7,x1〉) nat1
252 ndefinition opcode_table_IP2022_19 ≝
254 quadruple … MOV MODE_FR0_and_W (Byte 〈x0,x2〉) nat1
255 ; quadruple … MOV MODE_FR1_and_W (Byte 〈x0,x3〉) nat1
256 ; quadruple … MOV MODE_W_and_FR0 (Byte 〈x2,x0〉) nat1
257 ; quadruple … MOV MODE_W_and_FR1 (Byte 〈x2,x1〉) nat1
258 ; quadruple … MOV MODE_IMM8 (Byte 〈x7,xC〉) nat1
261 ndefinition opcode_table_IP2022_20 ≝
263 quadruple … MULS MODE_W_and_FR0 (Byte 〈x5,x4〉) nat1
264 ; quadruple … MULS MODE_W_and_FR1 (Byte 〈x5,x5〉) nat1
265 ; quadruple … MULS MODE_IMM8 (Byte 〈x7,x3〉) nat1
268 ndefinition opcode_table_IP2022_21 ≝
270 quadruple … MULU MODE_W_and_FR0 (Byte 〈x5,x0〉) nat1
271 ; quadruple … MULU MODE_W_and_FR1 (Byte 〈x5,x1〉) nat1
272 ; quadruple … MULU MODE_IMM8 (Byte 〈x7,x2〉) nat1
275 ndefinition opcode_table_IP2022_22 ≝
277 quadruple … NOT MODE_FR0_and_W (Byte 〈x2,x6〉) nat1
278 ; quadruple … NOT MODE_FR1_and_W (Byte 〈x2,x7〉) nat1
279 ; quadruple … NOT MODE_W_and_FR0 (Byte 〈x2,x4〉) nat1
280 ; quadruple … NOT MODE_W_and_FR1 (Byte 〈x2,x5〉) nat1
283 ndefinition opcode_table_IP2022_23 ≝
285 quadruple … OR MODE_FR0_and_W (Byte 〈x1,x2〉) nat1
286 ; quadruple … OR MODE_FR1_and_W (Byte 〈x1,x3〉) nat1
287 ; quadruple … OR MODE_W_and_FR0 (Byte 〈x1,x0〉) nat1
288 ; quadruple … OR MODE_W_and_FR1 (Byte 〈x1,x1〉) nat1
289 ; quadruple … OR MODE_IMM8 (Byte 〈x7,xD〉) nat1
292 ndefinition opcode_table_IP2022_24 ≝
294 quadruple … PAGE (MODE_IMM3 o0) (Word 〈〈x0,x0〉:〈x1,x0〉〉) nat1
295 ; quadruple … PAGE (MODE_IMM3 o1) (Word 〈〈x0,x0〉:〈x1,x1〉〉) nat1
296 ; quadruple … PAGE (MODE_IMM3 o2) (Word 〈〈x0,x0〉:〈x1,x2〉〉) nat1
297 ; quadruple … PAGE (MODE_IMM3 o3) (Word 〈〈x0,x0〉:〈x1,x3〉〉) nat1
298 ; quadruple … PAGE (MODE_IMM3 o4) (Word 〈〈x0,x0〉:〈x1,x4〉〉) nat1
299 ; quadruple … PAGE (MODE_IMM3 o5) (Word 〈〈x0,x0〉:〈x1,x5〉〉) nat1
300 ; quadruple … PAGE (MODE_IMM3 o6) (Word 〈〈x0,x0〉:〈x1,x6〉〉) nat1
301 ; quadruple … PAGE (MODE_IMM3 o7) (Word 〈〈x0,x0〉:〈x1,x7〉〉) nat1
304 ndefinition opcode_table_IP2022_25 ≝
306 quadruple … POP MODE_FR0_and_W (Byte 〈x4,x6〉) nat1
307 ; quadruple … POP MODE_FR1_and_W (Byte 〈x4,x7〉) nat1
308 ; quadruple … PUSH MODE_W_and_FR0 (Byte 〈x4,x4〉) nat1
309 ; quadruple … PUSH MODE_W_and_FR1 (Byte 〈x4,x5〉) nat1
310 ; quadruple … PUSH MODE_IMM8 (Byte 〈x7,x4〉) nat1
313 ndefinition opcode_table_IP2022_26 ≝
315 quadruple … RETI (MODE_IMM3 o0) (Word 〈〈x0,x0〉:〈x0,x8〉〉) nat3
316 ; quadruple … RETI (MODE_IMM3 o1) (Word 〈〈x0,x0〉:〈x0,x9〉〉) nat3
317 ; quadruple … RETI (MODE_IMM3 o2) (Word 〈〈x0,x0〉:〈x0,xA〉〉) nat3
318 ; quadruple … RETI (MODE_IMM3 o3) (Word 〈〈x0,x0〉:〈x0,xB〉〉) nat3
319 ; quadruple … RETI (MODE_IMM3 o4) (Word 〈〈x0,x0〉:〈x0,xC〉〉) nat3
320 ; quadruple … RETI (MODE_IMM3 o5) (Word 〈〈x0,x0〉:〈x0,xD〉〉) nat3
321 ; quadruple … RETI (MODE_IMM3 o6) (Word 〈〈x0,x0〉:〈x0,xE〉〉) nat3
322 ; quadruple … RETI (MODE_IMM3 o7) (Word 〈〈x0,x0〉:〈x0,xF〉〉) nat3
325 ndefinition opcode_table_IP2022_27 ≝
326 [ quadruple … RETW MODE_IMM8 (Byte 〈x7,x8〉) nat3 ].
328 ndefinition opcode_table_IP2022_28 ≝
330 quadruple … RL MODE_FR0_and_W (Byte 〈x3,x6〉) nat1
331 ; quadruple … RL MODE_FR1_and_W (Byte 〈x3,x7〉) nat1
332 ; quadruple … RL MODE_W_and_FR0 (Byte 〈x3,x4〉) nat1
333 ; quadruple … RL MODE_W_and_FR1 (Byte 〈x3,x5〉) nat1
336 ndefinition opcode_table_IP2022_29 ≝
338 quadruple … RR MODE_FR0_and_W (Byte 〈x3,x2〉) nat1
339 ; quadruple … RR MODE_FR1_and_W (Byte 〈x3,x3〉) nat1
340 ; quadruple … RR MODE_W_and_FR0 (Byte 〈x3,x0〉) nat1
341 ; quadruple … RR MODE_W_and_FR1 (Byte 〈x3,x1〉) nat1
344 ndefinition opcode_table_IP2022_30 ≝
346 quadruple … SB (MODE_FR0n o0) (Byte 〈xB,x0〉) nat1
347 ; quadruple … SB (MODE_FR1n o0) (Byte 〈xB,x1〉) nat1
348 ; quadruple … SB (MODE_FR0n o1) (Byte 〈xB,x2〉) nat1
349 ; quadruple … SB (MODE_FR1n o1) (Byte 〈xB,x3〉) nat1
350 ; quadruple … SB (MODE_FR0n o2) (Byte 〈xB,x4〉) nat1
351 ; quadruple … SB (MODE_FR1n o2) (Byte 〈xB,x5〉) nat1
352 ; quadruple … SB (MODE_FR0n o3) (Byte 〈xB,x6〉) nat1
353 ; quadruple … SB (MODE_FR1n o3) (Byte 〈xB,x7〉) nat1
354 ; quadruple … SB (MODE_FR0n o4) (Byte 〈xB,x8〉) nat1
355 ; quadruple … SB (MODE_FR1n o4) (Byte 〈xB,x9〉) nat1
356 ; quadruple … SB (MODE_FR0n o5) (Byte 〈xB,xA〉) nat1
357 ; quadruple … SB (MODE_FR1n o5) (Byte 〈xB,xB〉) nat1
358 ; quadruple … SB (MODE_FR0n o6) (Byte 〈xB,xC〉) nat1
359 ; quadruple … SB (MODE_FR1n o6) (Byte 〈xB,xD〉) nat1
360 ; quadruple … SB (MODE_FR0n o7) (Byte 〈xB,xE〉) nat1
361 ; quadruple … SB (MODE_FR1n o7) (Byte 〈xB,xF〉) nat1
364 ndefinition opcode_table_IP2022_31 ≝
366 quadruple … SETB (MODE_FR0n o0) (Byte 〈x9,x0〉) nat1
367 ; quadruple … SETB (MODE_FR1n o0) (Byte 〈x9,x1〉) nat1
368 ; quadruple … SETB (MODE_FR0n o1) (Byte 〈x9,x2〉) nat1
369 ; quadruple … SETB (MODE_FR1n o1) (Byte 〈x9,x3〉) nat1
370 ; quadruple … SETB (MODE_FR0n o2) (Byte 〈x9,x4〉) nat1
371 ; quadruple … SETB (MODE_FR1n o2) (Byte 〈x9,x5〉) nat1
372 ; quadruple … SETB (MODE_FR0n o3) (Byte 〈x9,x6〉) nat1
373 ; quadruple … SETB (MODE_FR1n o3) (Byte 〈x9,x7〉) nat1
374 ; quadruple … SETB (MODE_FR0n o4) (Byte 〈x9,x8〉) nat1
375 ; quadruple … SETB (MODE_FR1n o4) (Byte 〈x9,x9〉) nat1
376 ; quadruple … SETB (MODE_FR0n o5) (Byte 〈x9,xA〉) nat1
377 ; quadruple … SETB (MODE_FR1n o5) (Byte 〈x9,xB〉) nat1
378 ; quadruple … SETB (MODE_FR0n o6) (Byte 〈x9,xC〉) nat1
379 ; quadruple … SETB (MODE_FR1n o6) (Byte 〈x9,xD〉) nat1
380 ; quadruple … SETB (MODE_FR0n o7) (Byte 〈x9,xE〉) nat1
381 ; quadruple … SETB (MODE_FR1n o7) (Byte 〈x9,xF〉) nat1
384 ndefinition opcode_table_IP2022_32 ≝
386 quadruple … SNB (MODE_FR0n o0) (Byte 〈xA,x0〉) nat1
387 ; quadruple … SNB (MODE_FR1n o0) (Byte 〈xA,x1〉) nat1
388 ; quadruple … SNB (MODE_FR0n o1) (Byte 〈xA,x2〉) nat1
389 ; quadruple … SNB (MODE_FR1n o1) (Byte 〈xA,x3〉) nat1
390 ; quadruple … SNB (MODE_FR0n o2) (Byte 〈xA,x4〉) nat1
391 ; quadruple … SNB (MODE_FR1n o2) (Byte 〈xA,x5〉) nat1
392 ; quadruple … SNB (MODE_FR0n o3) (Byte 〈xA,x6〉) nat1
393 ; quadruple … SNB (MODE_FR1n o3) (Byte 〈xA,x7〉) nat1
394 ; quadruple … SNB (MODE_FR0n o4) (Byte 〈xA,x8〉) nat1
395 ; quadruple … SNB (MODE_FR1n o4) (Byte 〈xA,x9〉) nat1
396 ; quadruple … SNB (MODE_FR0n o5) (Byte 〈xA,xA〉) nat1
397 ; quadruple … SNB (MODE_FR1n o5) (Byte 〈xA,xB〉) nat1
398 ; quadruple … SNB (MODE_FR0n o6) (Byte 〈xA,xC〉) nat1
399 ; quadruple … SNB (MODE_FR1n o6) (Byte 〈xA,xD〉) nat1
400 ; quadruple … SNB (MODE_FR0n o7) (Byte 〈xA,xE〉) nat1
401 ; quadruple … SNB (MODE_FR1n o7) (Byte 〈xA,xF〉) nat1
404 ndefinition opcode_table_IP2022_33 ≝
405 [ quadruple … SPEED MODE_IMM8 (Byte 〈x0,x1〉) nat1 ].
407 ndefinition opcode_table_IP2022_34 ≝
409 quadruple … SUB MODE_FR0_and_W (Byte 〈x0,xA〉) nat1
410 ; quadruple … SUB MODE_FR1_and_W (Byte 〈x0,xB〉) nat1
411 ; quadruple … SUB MODE_W_and_FR0 (Byte 〈x0,x8〉) nat1
412 ; quadruple … SUB MODE_W_and_FR1 (Byte 〈x0,x9〉) nat1
413 ; quadruple … SUB MODE_IMM8 (Byte 〈x7,xA〉) nat1
416 ndefinition opcode_table_IP2022_35 ≝
418 quadruple … SUBC MODE_FR0_and_W (Byte 〈x4,xA〉) nat1
419 ; quadruple … SUBC MODE_FR1_and_W (Byte 〈x4,xB〉) nat1
420 ; quadruple … SUBC MODE_W_and_FR0 (Byte 〈x4,x8〉) nat1
421 ; quadruple … SUBC MODE_W_and_FR1 (Byte 〈x4,x9〉) nat1
424 ndefinition opcode_table_IP2022_36 ≝
426 quadruple … SWAP MODE_FR0_and_W (Byte 〈x3,xA〉) nat1
427 ; quadruple … SWAP MODE_FR1_and_W (Byte 〈x3,xB〉) nat1
428 ; quadruple … SWAP MODE_W_and_FR0 (Byte 〈x3,x8〉) nat1
429 ; quadruple … SWAP MODE_W_and_FR1 (Byte 〈x3,x9〉) nat1
432 ndefinition opcode_table_IP2022_37 ≝
434 quadruple … TEST MODE_FR0_and_W (Byte 〈x2,x2〉) nat1
435 ; quadruple … TEST MODE_FR1_and_W (Byte 〈x2,x3〉) nat1
438 ndefinition opcode_table_IP2022_38 ≝
440 quadruple … XOR MODE_FR0_and_W (Byte 〈x1,xA〉) nat1
441 ; quadruple … XOR MODE_FR1_and_W (Byte 〈x1,xB〉) nat1
442 ; quadruple … XOR MODE_W_and_FR0 (Byte 〈x1,x8〉) nat1
443 ; quadruple … XOR MODE_W_and_FR1 (Byte 〈x1,x9〉) nat1
444 ; quadruple … XOR MODE_IMM8 (Byte 〈x7,xF〉) nat1
447 ndefinition opcode_table_IP2022 ≝
448 opcode_table_IP2022_1 @ opcode_table_IP2022_2 @ opcode_table_IP2022_3 @ opcode_table_IP2022_4 @
449 opcode_table_IP2022_5 @ opcode_table_IP2022_6 @ opcode_table_IP2022_7 @ opcode_table_IP2022_8 @
450 opcode_table_IP2022_9 @ opcode_table_IP2022_10 @ opcode_table_IP2022_11 @ opcode_table_IP2022_12 @
451 opcode_table_IP2022_13 @ opcode_table_IP2022_14 @ opcode_table_IP2022_15 @ opcode_table_IP2022_16 @
452 opcode_table_IP2022_17 @ opcode_table_IP2022_18 @ opcode_table_IP2022_19 @ opcode_table_IP2022_20 @
453 opcode_table_IP2022_21 @ opcode_table_IP2022_22 @ opcode_table_IP2022_23 @ opcode_table_IP2022_24 @
454 opcode_table_IP2022_25 @ opcode_table_IP2022_26 @ opcode_table_IP2022_27 @ opcode_table_IP2022_28 @
455 opcode_table_IP2022_29 @ opcode_table_IP2022_30 @ opcode_table_IP2022_31 @ opcode_table_IP2022_32 @
456 opcode_table_IP2022_33 @ opcode_table_IP2022_34 @ opcode_table_IP2022_35 @ opcode_table_IP2022_36 @
457 opcode_table_IP2022_37 @ opcode_table_IP2022_38.