Lines Matching refs:opcode
50 unsigned short opcode; in print_insn_tic54x() local
61 opcode = bfd_getl16 (opbuf); in print_insn_tic54x()
62 tm = tic54x_get_insn (info, memaddr, opcode, &size); in print_insn_tic54x()
71 if (!print_parallel_instruction (info, memaddr, opcode, tm, size)) in print_insn_tic54x()
76 if (!print_instruction (info, memaddr, opcode, in print_insn_tic54x()
108 if (tm->opcode == (memdata & tm->mask)) in tic54x_get_insn()
138 if (tm->opcode == (memdata & tm->mask)) in tic54x_get_insn()
168 print_instruction (info, memaddr, opcode, tm_name, tm_operands, size, ext) in print_instruction() argument
171 unsigned short opcode;
213 sprint_dual_address (info, operand[i], XMEM (opcode));
217 sprint_dual_address (info, operand[i], YMEM (opcode));
224 if (INDIRECT (opcode))
226 if (MOD (opcode) >= 12)
229 int arf = ARF (opcode);
230 int mod = MOD (opcode);
243 sprint_indirect_address (info, operand[i], opcode);
251 sprint_direct_address (info, operand[i], opcode);
261 opcode2 += ((unsigned long) opcode & 0x7F) << 16;
268 sprint_mmr (info, operand[i], MMRX (opcode));
272 sprint_mmr (info, operand[i], MMRY (opcode));
276 sprint_mmr (info, operand[i], MMR (opcode));
284 src = SRC (ext ? opcode2 : opcode) ? OP_B : OP_A;
289 src = SRC1 (ext ? opcode2 : opcode) ? OP_B : OP_A;
294 dst = DST (opcode) ? OP_B : OP_A;
299 dst = DST (ext ? opcode2 : opcode) ? OP_B : OP_A;
317 sprintf (operand[i], "ar%d", (int) ARX (opcode));
321 shift = SHIFT (ext ? opcode2 : opcode);
331 shift = SHFT (opcode);
353 sprintf (operand[i], "%d", (int) ((signed char) (opcode & 0xFF)));
365 sprintf (operand[i], "%d", (int) (opcode & 0xF));
370 sprint_condition (info, operand[i], opcode);
375 sprint_cc2 (info, operand[i], opcode);
381 sprintf (operand[i], code[CC3 (opcode)]);
387 int code = (opcode >> 8) & 0x3;
394 (int) (((signed char) opcode & 0x1F) << 3) >> 3);
398 sprintf (operand[i], "#%d", (unsigned) (opcode & 0xFF));
402 sprintf (operand[i], "#%d", (int) (opcode & 0x7));
410 n = (opcode >> 9) & 0x1;
426 n ? status1[SBIT (opcode)] : status0[SBIT (opcode)]);
431 sprintf (operand[i], "%d", (int) ((opcode >> 9) & 1) + 1);
444 sprintf (operand[i], "#%d", (int) (opcode & 0x1FF));
452 sprintf (operand[i], "%d", (int) (opcode & 0x1F));
466 print_parallel_instruction (info, memaddr, opcode, ptm, size) in print_parallel_instruction() argument
469 unsigned short opcode;
473 print_instruction (info, memaddr, opcode,
476 return print_instruction (info, memaddr, opcode,
496 sprint_indirect_address (info, buf, opcode) in sprint_indirect_address() argument
499 unsigned short opcode;
515 return sprintf (buf, formats[MOD (opcode)], ARF (opcode));
519 sprint_direct_address (info, buf, opcode) in sprint_direct_address() argument
522 unsigned short opcode;
525 return sprintf (buf, "DP+0x%02x", (int) (opcode & 0x7F));
549 sprint_cc2 (info, buf, opcode) in sprint_cc2() argument
552 unsigned short opcode;
558 return sprintf (buf, "%s", cc2[opcode & 0xF]);
562 sprint_condition (info, buf, opcode) in sprint_condition() argument
565 unsigned short opcode;
571 if (opcode & 0x40)
573 char acc = (opcode & 0x8) ? 'b' : 'a';
574 if (opcode & 0x7)
575 buf += sprintf (buf, "%c%s%s", acc, cmp[(opcode & 0x7)],
576 (opcode & 0x20) ? ", " : "");
577 if (opcode & 0x20)
578 buf += sprintf (buf, "%c%s", acc, (opcode & 0x10) ? "ov" : "nov");
580 else if (opcode & 0x3F)
582 if (opcode & 0x30)
584 ((opcode & 0x30) == 0x30) ? "tc" : "ntc",
585 (opcode & 0x0F) ? ", " : "");
586 if (opcode & 0x0C)
588 ((opcode & 0x0C) == 0x0C) ? "c" : "nc",
589 (opcode & 0x03) ? ", " : "");
590 if (opcode & 0x03)
592 ((opcode & 0x03) == 0x03) ? "bio" : "nbio");