Lines Matching full:opcode
3 * Generate opcode table initializers for the in-kernel disassembler.
24 char opcode[STRING_SIZE_MAX]; member
35 char opcode[2]; member
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); in read_instructions()
246 char *opcode; in print_opcode() local
248 opcode = insn->opcode; in print_opcode()
250 opcode += 2; in print_opcode()
251 printf("\t[%4d] = { .opfrag = 0x%s, .format = INSTR_%s, ", nr, opcode, insn->format); in print_opcode()
266 if (group && (!strncmp(group->opcode, insn->opcode, 2) || group->type->byte == 0)) { in add_to_group()
275 memcpy(group->opcode, insn->opcode, 2); in add_to_group()
283 return strcmp(((struct insn *)a)->opcode, ((struct insn *)b)->opcode); in cmpopcode()
288 char opcode[2] = ""; in print_opcode_table() local
300 if (strncmp(opcode, insn->opcode, 2)) { in print_opcode_table()
301 memcpy(opcode, insn->opcode, 2); in print_opcode_table()
302 printf("\t/* %.2s */ \\\n", opcode); in print_opcode_table()
307 printf("\t/* 1-byte opcode instructions */ \\\n"); in print_opcode_table()
327 printf("\t{ .opcode = 0x%.2s, .mask = 0x%02x, .byte = %d, .offset = %d, .count = %d }, \\\n", in print_opcode_table_offsets()
328 group->opcode, group->type->mask, group->type->byte, group->offset, group->count); in print_opcode_table_offsets()