• Home
  • Raw
  • Download

Lines Matching refs:OpCode

106   UINT32  OpCode;  member
490 UINT16 OpCode; in DisassembleThumbInstruction() local
504 OpCode = **OpCodePtrPtr; in DisassembleThumbInstruction()
507 OpCode32 = (((UINT32)OpCode) << 16) | *(OpCodePtr + 1); in DisassembleThumbInstruction()
510 Rd = OpCode & 0x7; in DisassembleThumbInstruction()
511 Rn = (OpCode >> 3) & 0x7; in DisassembleThumbInstruction()
512 Rm = (OpCode >> 6) & 0x7; in DisassembleThumbInstruction()
513 H1 = (OpCode & BIT7) != 0; in DisassembleThumbInstruction()
514 H2 = (OpCode & BIT6) != 0; in DisassembleThumbInstruction()
515 imod = (OpCode & BIT4) != 0; in DisassembleThumbInstruction()
530 if ((OpCode & gOpThumb[Index].Mask) == gOpThumb[Index].OpCode) { in DisassembleThumbInstruction()
532 Offset = AsciiSPrint (Buf, Size, "0x%04x %-6a", OpCode, gOpThumb[Index].Start); in DisassembleThumbInstruction()
539 … AsciiSPrint (&Buf[Offset], Size - Offset, " r%d, [r%d #0x%x]", Rd, Rn, (OpCode >> 4) & 0x7c); in DisassembleThumbInstruction()
543 … AsciiSPrint (&Buf[Offset], Size - Offset, " r%d, [r%d #0x%x]", Rd, Rn, (OpCode >> 5) & 0x3e); in DisassembleThumbInstruction()
547 … AsciiSPrint (&Buf[Offset], Size - Offset, " r%d, [r%d #0x%x]", Rd, Rn, (OpCode >> 6) & 0x1f); in DisassembleThumbInstruction()
556 Target = (OpCode & 0xff) << 2; in DisassembleThumbInstruction()
557 …AsciiSPrint (&Buf[Offset], Size - Offset, " r%d, [pc, #0x%x] ;0x%08x", (OpCode >> 8) & 7, Target, … in DisassembleThumbInstruction()
561 Target = (OpCode & 0xff) << 2; in DisassembleThumbInstruction()
562 AsciiSPrint (&Buf[Offset], Size - Offset, " r%d, [sp, #0x%x]", (OpCode >> 8) & 7, Target); in DisassembleThumbInstruction()
567 …AsciiSPrint (&Buf[Offset], Size - Offset, " r%d!, %a", (OpCode >> 8) & 7, ThumbMRegList (OpCode & … in DisassembleThumbInstruction()
572 …AsciiSPrint (&Buf[Offset], Size - Offset, " %a", ThumbMRegList ((OpCode & 0xff) | ((OpCode & BIT8)… in DisassembleThumbInstruction()
577 …AsciiSPrint (&Buf[Offset], Size - Offset, " %a", ThumbMRegList ((OpCode & 0xff) | ((OpCode & BIT8)… in DisassembleThumbInstruction()
583 AsciiSPrint (&Buf[Offset], Size - Offset, " 0x%x", OpCode & 0xff); in DisassembleThumbInstruction()
589 Cond = gCondition[(OpCode >> 8) & 0xf]; in DisassembleThumbInstruction()
592 …AsciiSPrint (&Buf[Offset], Size - Offset, " 0x%04x", PC + 4 + SignExtend32 ((OpCode & 0xff) << 1,… in DisassembleThumbInstruction()
596 …AsciiSPrint (&Buf[Offset], Size - Offset, " 0x%04x", PC + 4 + SignExtend32 ((OpCode & 0x3ff) << 1,… in DisassembleThumbInstruction()
614 AsciiSPrint (&Buf[Offset], Size - Offset, " r%d, #0x%x", (OpCode >> 8) & 7, OpCode & 0xff); in DisassembleThumbInstruction()
618 AsciiSPrint (&Buf[Offset], Size - Offset, " r%d, r%d, 0x%x", Rn, Rd, (OpCode >> 6) & 0x1f); in DisassembleThumbInstruction()
626 …AsciiSPrint (&Buf[Offset], Size - Offset, " r%d, sp, 0x%x", (OpCode >> 8) & 7, (OpCode & 0xff) << … in DisassembleThumbInstruction()
630 …AsciiSPrint (&Buf[Offset], Size - Offset, " r%d, pc, 0x%x", (OpCode >> 8) & 7, (OpCode & 0xff) << … in DisassembleThumbInstruction()
634 AsciiSPrint (&Buf[Offset], Size - Offset, " sp, sp, 0x%x", (OpCode & 0x7f)*4); in DisassembleThumbInstruction()
643 …ffset, "%a %a%a%a", imod ? "ID":"IE", ((OpCode & BIT2) == 0) ? "":"a", ((OpCode & BIT1) == 0) ? "… in DisassembleThumbInstruction()
648 AsciiSPrint (&Buf[Offset], Size - Offset, " %a", (OpCode & BIT3) == 0 ? "LE":"BE"); in DisassembleThumbInstruction()
653 Target = ((OpCode >> 2) & 0x3e) | (((OpCode & BIT9) == BIT9) ? BIT6 : 0); in DisassembleThumbInstruction()
659 Target = (OpCode & 0xff) << 2; in DisassembleThumbInstruction()
660 …AsciiSPrint (&Buf[Offset], Size - Offset, " %a, %08x", gReg[(OpCode >> 8) & 7], PCAlign4 (PC) + Ta… in DisassembleThumbInstruction()
672 Mask = (OpCode & 0xf); in DisassembleThumbInstruction()
676 } else if ((OpCode & 0x3) == 0x2) { in DisassembleThumbInstruction()
679 } else if ((OpCode & 0x7) == 0x4) { in DisassembleThumbInstruction()
682 } else if ((OpCode & 0xf) == 0x8) { in DisassembleThumbInstruction()
685 AsciiSPrint (&Buf[Offset], Size - Offset, " %a", gCondition[(OpCode >> 4) & 0xf]); in DisassembleThumbInstruction()
700 if ((OpCode32 & gOpThumb2[Index].Mask) == gOpThumb2[Index].OpCode) { in DisassembleThumbInstruction()
864 … Target = (OpCode32 & 0xff) | ((OpCode32 >> 4) & 0x700) | ((OpCode & BIT26) == BIT26 ? BIT11 : 0); in DisassembleThumbInstruction()
873 … Target = (OpCode32 & 0xff) | ((OpCode32 >> 4) & 0x700) | ((OpCode & BIT26) == BIT26 ? BIT11 : 0); in DisassembleThumbInstruction()
879 … Target = (OpCode32 & 0xff) | ((OpCode32 >> 4) & 0x700) | ((OpCode & BIT26) == BIT26 ? BIT11 : 0); in DisassembleThumbInstruction()
892 … AsciiSPrint (&Buf[Offset], Size - Offset, ", LSL %d", gShiftType[(OpCode >> 5) & 3], Target); in DisassembleThumbInstruction()
901 … AsciiSPrint (&Buf[Offset], Size - Offset, ", LSL %d", gShiftType[(OpCode >> 5) & 3], Target); in DisassembleThumbInstruction()
924 … Target = (OpCode32 & 0xff) | ((OpCode32 >> 8) & 0x700) | ((OpCode & BIT26) == BIT26 ? BIT11 : 0); in DisassembleThumbInstruction()
925 if ((OpCode & (BIT23 | BIT21)) == (BIT23 | BIT21)) { in DisassembleThumbInstruction()
935 … Target = (OpCode32 & 0xff) | ((OpCode >> 4) & 0x700) | ((OpCode & BIT26) == BIT26 ? BIT11 : 0); in DisassembleThumbInstruction()
942 lsbit = ((OpCode32 >> 6) & 3) | ((OpCode >> 10) & 0x1c); in DisassembleThumbInstruction()