Lines Matching refs:instr

182 		ctx.instr = INSTRUCTION (memaddr);  in disppc()
189 ((ctx.instr >> 24) & 0xff), in disppc()
190 ((ctx.instr >> 16) & 0xff), ((ctx.instr >> 8) & 0xff), in disppc()
191 (ctx.instr & 0xff)); in disppc()
198 if ((ctx.op = find_opcode (ctx.instr)) == 0) { in disppc()
201 ctx.instr); in disppc()
262 operand = (ctx->instr >> opr->shift) & ((1 << opr->bits) - 1); in print_operands()
374 int get_operand_value (struct opcode *op, unsigned long instr, in get_operand_value() argument
395 *value = (instr >> opr->shift) & ((1 << opr->bits) - 1); in get_operand_value()
418 struct opcode *find_opcode (unsigned long instr) in find_opcode() argument
431 if ((instr & ptr->mask) < ptr->opcode) { in find_opcode()
433 } else if ((instr & ptr->mask) > ptr->opcode) { in find_opcode()
673 if (get_operand_value(ctx->op, ctx->instr, O_BO, &bo) == false) in handle_bc()
676 if (get_operand_value(ctx->op, ctx->instr, O_BI, &bi) == false) in handle_bc()
758 unsigned long instr; in asmppc() local
796 instr = opc->opcode; in asmppc()
827 instr |= param; in asmppc()
838 printf ("asmppc: Instruction = 0x%08lx\n", instr); in asmppc()
841 return instr; in asmppc()
1061 unsigned long instr; /* instruction at SRR0 */ in find_next_address() local
1083 instr = INSTRUCTION (pc); in find_next_address()
1085 if ((op = find_opcode (instr)) == (struct opcode *) 0) { in find_next_address()
1086 printf ("find_next_address: can't parse opcode 0x%lx", instr); in find_next_address()
1099 if (!get_operand_value (op, instr, O_BD, &addr) || in find_next_address()
1100 !get_operand_value (op, instr, O_BO, &bo) || in find_next_address()
1101 !get_operand_value (op, instr, O_BI, &bi) || in find_next_address()
1102 !get_operand_value (op, instr, O_AA, &aa) || in find_next_address()
1103 !get_operand_value (op, instr, O_LK, &lk)) in find_next_address()
1117 if (!get_operand_value (op, instr, O_LI, &addr) || in find_next_address()
1118 !get_operand_value (op, instr, O_AA, &aa) || in find_next_address()
1119 !get_operand_value (op, instr, O_LK, &lk)) in find_next_address()
1131 if (!get_operand_value (op, instr, O_BO, &bo) || in find_next_address()
1132 !get_operand_value (op, instr, O_BI, &bi) || in find_next_address()
1133 !get_operand_value (op, instr, O_LK, &lk)) in find_next_address()
1144 if (!get_operand_value (op, instr, O_BO, &bo) || in find_next_address()
1145 !get_operand_value (op, instr, O_BI, &bi) || in find_next_address()
1146 !get_operand_value (op, instr, O_LK, &lk)) in find_next_address()