-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathref.json
523 lines (466 loc) · 13.3 KB
/
ref.json
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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
{
"mov" : {
"name" : "Move",
"syn" : "src dest",
"size" : [0, 0],
"type" : ["IRM", "RM"],
"desc" : "Copy src to dest.",
"flags" : "None"
},
"movabsq" : {
"name" : "Move",
"syn" : "src dest",
"size" : [8, 8],
"type" : ["IRM", "R"],
"desc" : "Copy src to dest. src can be up to 8 bytes long, and dest must be a register.",
"flags" : "None"
},
"movsb" : {
"name" : "Move Sign-Extended",
"syn" : "src dest",
"size" : [1, 0],
"type" : ["RM", "R"],
"desc" : "Copy src to dest, extending the sign of src.",
"flags" : "None"
},
"movsw" : {
"name" : "Move Sign-Extended",
"syn" : "src dest",
"size" : [2, 0],
"type" : ["RM", "R"],
"desc" : "Copy src to dest, extending the sign of src.",
"flags" : "None"
},
"movslq" : {
"name" : "Move Sign-Extended",
"syn" : "src dest",
"size" : [4, 8],
"type" : ["RM", "R"],
"desc" : "Copy src to dest, extending the sign of src.",
"flags" : "None"
},
"movzb" : {
"name" : "Move Zero-Extended",
"syn" : "src dest",
"size" : [1, 0],
"type" : ["RM", "R"],
"desc" : "Copy src to dest, setting the high-order bytes of dest to zero.",
"flags" : "None"
},
"movzw" : {
"name" : "Move Zero-Extended",
"syn" : "src dest",
"size" : [2, 0],
"type" : ["RM", "R"],
"desc" : "Copy src to dest, setting the high-order bytes of dest to zero.",
"flags" : "None"
},
"cmove" : {
"name" : "Conditional Move (Equal)",
"syn" : "src dest",
"size" : [0,0],
"type" : ["RM", "R"],
"desc" : "Copy long or word operand src to long or word register dest iff the flags in the EFLAGS register indicate an equal to.",
"flags" : "None"
},
"cmovne" : {
"name" : "Conditional Move (Not Equal)",
"syn" : "src dest",
"size" : [0,0],
"type" : ["RM", "R"],
"desc" : "Copy long or word operand src to long or word register dest iff the flags in the EFLAGS register indicate not equal to.",
"flags" : "None"
},
"cmovl" : {
"name" : "Conditional Move (Less than)",
"syn" : "src dest",
"size" : [0,0],
"type" : ["RM", "R"],
"desc" : "Copy long or word operand src to long or word register dest iff the flags in the EFLAGS register indicate less than (signed numbers).",
"flags" : "None"
},
"cmovle" : {
"name" : "Conditional Move (Less than or Equal)",
"syn" : "src dest",
"size" : [0,0],
"type" : ["RM", "R"],
"desc" : "Copy long or word operand src to long or word register dest iff the flags in the EFLAGS register indicate less than (signed numbers) or equal to.",
"flags" : "None"
},
"cmovg" : {
"name" : "Conditional Move (Greater than)",
"syn" : "src dest",
"size" : [0,0],
"type" : ["RM", "R"],
"desc" : "Copy long or word operand src to long or word register dest iff the flags in the EFLAGS register indicate greater than (signed numbers).",
"flags" : "None"
},
"cmovge" : {
"name" : "Conditional Move (Greater than or Equal)",
"syn" : "src dest",
"size" : [0,0],
"type" : ["RM", "R"],
"desc" : "Copy long or word operand src to long or word register dest iff the flags in the EFLAGS register indicate greater than or equal to (signed numbers).",
"flags" : "None"
},
"cmovb" : {
"name" : "Conditional Move (Below)",
"syn" : "src dest",
"size" : [0,0],
"type" : ["RM", "R"],
"desc" : "Copy long or word operand src to long or word register dest iff the flags in the EFLAGS register indicate below (unsigned numbers).",
"flags" : "None"
},
"cmovbe" : {
"name" : "Conditional Move (Below or Equal)",
"syn" : "src dest",
"size" : [0,0],
"type" : ["RM", "R"],
"desc" : "Copy long or word operand src to long or word register dest iff the flags in the EFLAGS register indicate below (unsigned numbers) or equal.",
"flags" : "None"
},
"cmova" : {
"name" : "Conditional Move (Above)",
"syn" : "src dest",
"size" : [0,0],
"type" : ["RM", "R"],
"desc" : "Copy long or word operand src to long or word register dest iff the flags in the EFLAGS register indicate above (unsigned numbers).",
"flags" : "None"
},
"cmovae" : {
"name" : "Conditional Move (Above or Equal)",
"syn" : "src dest",
"size" : [0,0],
"type" : ["RM", "R"],
"desc" : "Copy long or word operand src to long or word register dest iff the flags in the EFLAGS register indicate above (unsigned numbers) or equal.",
"flags" : "None"
},
"pushq" : {
"name" : "Push",
"syn" : "src",
"size" : [8],
"type" : ["IRM"],
"desc" : "Push quad src onto the stack. Equivalent to <br><div class='tt-code'>subq $8, %rsp<br>movq src (%rsp)</div>",
"flags" : "None"
},
"pushw" : {
"name" : "Push",
"syn" : "src",
"size" : [2],
"type" : ["IRM"],
"desc" : "Push word src onto the stack. Equivalent to <br><div class='tt-code'>subq $2, %rsp<br>movw src (%rsp)</div>",
"flags" : "None"
},
"popq" : {
"name" : "Push",
"syn" : "src",
"size" : [8],
"type" : ["RM"],
"desc" : "Pop quad from the stack into dest. Equivalent to <br><div class='tt-code'>movq (%rsp), dest<br>addq $8, %rsp</div>",
"flags" : "None"
},
"popw" : {
"name" : "Push",
"syn" : "src",
"size" : [2],
"type" : ["RM"],
"desc" : "Pop word from the stack into dest. Equivalent to <br><div class='tt-code'>movw (%rsp), dest<br>addq $2, %rsp</div>",
"flags" : "None"
},
"lea" : {
"name" : "Load Effective Address",
"syn" : "src dest",
"size" : [0, 0],
"type" : ["M", "R"],
"desc" : "Assign the address of src to dest. That is, determine the address denoted by src, but don't fetch data from that address; instead use the address itself.",
"flags" : "None"
},
"cqto" : {
"name" : "Convert Quad to Oct Register",
"syn" : "(no operands)",
"size" : [],
"type" : [],
"desc" : "Sign extend the contents of register RAX into the register pair RDX:RAX, typically in preparation for idivq.",
"flags" : "None"
},
"cltd" : {
"name" : "Convert Long to Double Register",
"syn" : "(no operands)",
"size" : [],
"type" : [],
"desc" : "Sign extend the contents of register EAX into the register pair EDX:EAX, typically in preparation for idivl.",
"flags" : "None"
},
"cwtd" : {
"name" : "Convert Word to Double Register",
"syn" : "(no operands)",
"size" : [],
"type" : [],
"desc" : "Sign extend the contents of register AX into the register pair DX:AX, typically in preparation for idivw.",
"flags" : "None"
},
"cbtw" : {
"name" : "Convert Byte to Word",
"syn" : "(no operands)",
"size" : [],
"type" : [],
"desc" : "Sign extend the contents of register AL into register AX, typically in preparation for idivb.",
"flags" : "None"
},
"add" : {
"name" : "Add",
"syn" : "src dest",
"size" : [],
"type" : ["IRM", "RM"],
"desc" : "Add src to dest.",
"flags" : "O, S, Z, A, C, P"
},
"adc" : {
"name" : "Add with carry",
"syn" : "src dest",
"size" : [],
"type" : ["IRM", "RM"],
"desc" : "Add src and the C flag to dest.",
"flags" : "O, S, Z, A, C, P"
},
"sub" : {
"name" : "Subtract",
"syn" : "src dest",
"size" : [],
"type" : ["IRM", "RM"],
"desc" : "Subtract src from dest.",
"flags" : "O, S, Z, A, C, P"
},
"inc" : {
"name" : "Add",
"syn" : "dest",
"size" : [],
"type" : [],
"desc" : "Increment dest.",
"flags" : "O, S, Z, A, P"
},
"dec" : {
"name" : "Decrement",
"syn" : "dest",
"size" : [],
"type" : ["RM"],
"desc" : "Decrement dest.",
"flags" : "O, S, Z, A, P"
},
"neg" : {
"name" : "Negate",
"syn" : "dest",
"size" : [],
"type" : ["RM"],
"desc" : "Negate dest.",
"flags" : "O, S, Z, A, C, P"
},
"imul" : {
"name" : "Multiply",
"syn" : "src dest",
"size" : [],
"type" : ["IRM", "RM"],
"desc" : "Multiply src by dest and store the result in dest.",
"flags" : "O, S, Z, A, C, P"
},
"and" : {
"name" : "And",
"syn" : "src dest",
"size" : [],
"type" : ["IRM", "RM"],
"desc" : "Bitwise and src into dest.",
"flags" : "O, S, Z, A, C, P"
},
"or" : {
"name" : "Or",
"syn" : "src dest",
"size" : [],
"type" : ["IRM", "RM"],
"desc" : "Bitwise or src into dest.",
"flags" : "O, S, Z, A, C, P"
},
"xor" : {
"name" : "Exclusive Or",
"syn" : "src dest",
"size" : [],
"type" : ["IRM", "RM"],
"desc" : "Bitwise exclusive or src into dest.",
"flags" : "O, S, Z, A, C, P"
},
"not" : {
"name" : "Not",
"syn" : "dest",
"size" : [],
"type" : ["RM"],
"desc" : "Bitwise not dest.",
"flags" : "None"
},
"sal" : {
"name" : "Shift Arithmetic Left",
"syn" : "src dest",
"size" : [],
"type" : ["IR", "RM"],
"desc" : "Shift dest to the left by src bits, filling with zeros. If src is a register, then it must be the CL register.",
"flags" : "O, S, Z, A, C, P"
},
"sar" : {
"name" : "Shift Arithmetic Right",
"syn" : "src dest",
"size" : [],
"type" : ["IR", "RM"],
"desc" : "Shift dest to the right by src bits, sign extending the number. If src is a register, then it must be the CL register.",
"flags" : "O, S, Z, A, C, P"
},
"shl" : {
"name" : "Shift Left",
"syn" : "src dest",
"size" : [],
"type" : ["IR", "RM"],
"desc" : "Shift dest to the left by src bits, filling with zeros. If src is a register, then it must be the CL register. (Same as sal)",
"flags" : "O, S, Z, A, C, P"
},
"shr" : {
"name" : "Shift Right",
"syn" : "src dest",
"size" : [],
"type" : ["IR", "RM"],
"desc" : "Shift dest to the right by src bits, filling with zeros. If src is a register, then it must be the CL register.",
"flags" : "O, S, Z, A, C, P"
},
"cmp" : {
"name" : "Compare",
"syn" : "src dest",
"size" : [0, 0],
"type" : ["IRM", "RM"],
"desc" : "Compute dest - src and set flags in the EFLAGS register based upon the result.",
"flags" : "O, S, Z, A, C, P"
},
"test" : {
"name" : "Shift Arithmetic Right",
"syn" : "src dest",
"size" : [],
"type" : ["IRM", "RM"],
"desc" : "Compute dest & src and set flags in the EFLAGS register based upon the result.",
"flags" : "O = 0, S, A = 0, Z, P"
},
"ret" : {
"name" : "Return",
"syn" : "(no operands)",
"size" : [],
"type" : [],
"desc" : "Return from current function. That is, pop from the stack to the instruction pointer, to return to the address from which the function was called.",
"flags" : "None"
},
"call" : {
"name" : "Call",
"syn" : "label",
"size" : [],
"type" : [],
"desc" : "Push the address of the next instruction onto the stack and jump to location specified by label.",
"flags" : "None"
},
"jmp" : {
"name" : "Jump",
"syn" : "label",
"size" : [],
"type" : [],
"desc" : "Jump to the address specified by label, (overwrite the instruction pointer with the address of label).",
"flags" : "None"
},
"je" : {
"name" : "Conditional Jump (Equal)",
"syn" : "label",
"size" : [],
"type" : [],
"desc" : "Jump to address specified by label iff the flags in the EFLAGS register indicate an equal to.",
"flags" : "None"
},
"jne" : {
"name" : "Conditional Jump (Not Equal)",
"syn" : "label",
"size" : [],
"type" : [],
"desc" : "Jump to address specified by label iff the flags in the EFLAGS register indicate not equal to.",
"flags" : "None"
},
"jl" : {
"name" : "Conditional Jump (Less than)",
"syn" : "label",
"size" : [],
"type" : [],
"desc" : "Jump to address specified by label iff the flags in the EFLAGS register indicate less than (signed numbers).",
"flags" : "None"
},
"jle" : {
"name" : "Conditional Jump (Less than or Equal)",
"syn" : "label",
"size" : [],
"type" : [],
"desc" : "Jump to address specified by label iff the flags in the EFLAGS register indicate less than (signed numbers) or equal to.",
"flags" : "None"
},
"jg" : {
"name" : "Conditional Jump (Greater than)",
"syn" : "label",
"size" : [],
"type" : [],
"desc" : "Jump to address specified by label iff the flags in the EFLAGS register indicate greater than (signed numbers).",
"flags" : "None"
},
"jge" : {
"name" : "Conditional Jump (Greater than or Equal)",
"syn" : "label",
"size" : [],
"type" : [],
"desc" : "Jump to address specified by label iff the flags in the EFLAGS register indicate greater than or equal to (signed numbers).",
"flags" : "None"
},
"jb" : {
"name" : "Conditional Jump (Below)",
"syn" : "label",
"size" : [],
"type" : [],
"desc" : "Jump to address specified by label iff the flags in the EFLAGS register indicate below (unsigned numbers).",
"flags" : "None"
},
"jbe" : {
"name" : "Conditional Jump (Below or Equal)",
"syn" : "label",
"size" : [],
"type" : [],
"desc" : "Jump to address specified by label iff the flags in the EFLAGS register indicate below (unsigned numbers) or equal.",
"flags" : "None"
},
"ja" : {
"name" : "Conditional Jump (Above)",
"syn" : "label",
"size" : [],
"type" : [],
"desc" : "Jump to address specified by label iff the flags in the EFLAGS register indicate above (unsigned numbers).",
"flags" : "None"
},
"jae" : {
"name" : "Conditional Jump (Above or Equal)",
"syn" : "label",
"size" : [],
"type" : [],
"desc" : "Jump to address specified by label iff the flags in the EFLAGS register indicate above (unsigned numbers) or equal.",
"flags" : "None"
},
"nop" : {
"name" : "No Operation",
"syn" : "(no operands)",
"size" : [],
"type" : [],
"desc" : "Do nothing for some specified number of clock cycles.",
"flags" : "None"
},
"leave" : {
"name" : "Leave",
"syn" : "(no operands)",
"size" : [],
"type" : [],
"desc" : "Copy %rbp to %rsp and pop from the stack to %rbp, restoring the stack frame of the caller before returning. This is the opposite of enter.",
"flags" : "None"
}
}