Lines Matching defs:opcode
3 * Generate opcode table initializers for the in-kernel disassembler.
24 char opcode[STRING_SIZE_MAX];
35 char opcode[2];
51 * Table of instruction format types. Each opcode is defined with at
56 * of an opcode can be found. The mask member is the and-mask that
58 * fourth) nibble of the opcode.
60 * Principles of Operation) which have the same position of the opcode
64 * the (only) byte that contains the opcode.
158 rc = scanf("%s %s %s", insn.opcode, insn.name, insn.format);
233 char *opcode;
235 opcode = insn->opcode;
237 opcode += 2;
238 printf("\t[%4d] = { .opfrag = 0x%s, .format = INSTR_%s, ", nr, opcode, insn->format);
251 if (group && (!strncmp(group->opcode, insn->opcode, 2) || group->type->byte == 0)) {
260 memcpy(group->opcode, insn->opcode, 2);
268 return strcmp(((struct insn *)a)->opcode, ((struct insn *)b)->opcode);
273 char opcode[2] = "";
285 if (strncmp(opcode, insn->opcode, 2)) {
286 memcpy(opcode, insn->opcode, 2);
287 printf("\t/* %.2s */ \\\n", opcode);
292 printf("\t/* 1-byte opcode instructions */ \\\n");
312 printf("\t{ .opcode = 0x%.2s, .mask = 0x%02x, .byte = %d, .offset = %d, .count = %d }, \\\n",
313 group->opcode, group->type->mask, group->type->byte, group->offset, group->count);