Lines Matching full:instruction
28 // A Disassembler object is used to disassemble a block of code instruction by
29 // instruction. The default implementation of the NameConverter object can be
86 // Writes one disassembled instruction into 'buffer' (0-terminated).
87 // Returns the length of the disassembled machine instruction in bytes.
88 int InstructionDecode(byte* instruction);
98 void PrintRs(Instruction* instr);
99 void PrintRt(Instruction* instr);
100 void PrintRd(Instruction* instr);
101 void PrintFs(Instruction* instr);
102 void PrintFt(Instruction* instr);
103 void PrintFd(Instruction* instr);
104 void PrintSa(Instruction* instr);
105 void PrintSd(Instruction* instr);
106 void PrintSs1(Instruction* instr);
107 void PrintSs2(Instruction* instr);
108 void PrintBc(Instruction* instr);
109 void PrintCc(Instruction* instr);
110 void PrintFunction(Instruction* instr);
111 void PrintSecondaryField(Instruction* instr);
112 void PrintUImm16(Instruction* instr);
113 void PrintSImm16(Instruction* instr);
114 void PrintXImm16(Instruction* instr);
115 void PrintXImm26(Instruction* instr);
116 void PrintCode(Instruction* instr); // For break and trap instructions.
117 // Printing of instruction name.
118 void PrintInstructionName(Instruction* instr);
121 int FormatRegister(Instruction* instr, const char* option);
122 int FormatFPURegister(Instruction* instr, const char* option);
123 int FormatOption(Instruction* instr, const char* option);
124 void Format(Instruction* instr, const char* format);
125 void Unknown(Instruction* instr);
127 // Each of these functions decodes one particular instruction type.
128 void DecodeTypeRegister(Instruction* instr);
129 void DecodeTypeImmediate(Instruction* instr);
130 void DecodeTypeJump(Instruction* instr);
168 void Decoder::PrintRs(Instruction* instr) {
174 void Decoder::PrintRt(Instruction* instr) {
180 void Decoder::PrintRd(Instruction* instr) {
192 void Decoder::PrintFs(Instruction* instr) {
198 void Decoder::PrintFt(Instruction* instr) {
204 void Decoder::PrintFd(Instruction* instr) {
211 void Decoder::PrintSa(Instruction* instr) {
218 void Decoder::PrintSd(Instruction* instr) {
225 void Decoder::PrintSs1(Instruction* instr) {
232 void Decoder::PrintSs2(Instruction* instr) {
241 void Decoder::PrintBc(Instruction* instr) {
248 void Decoder::PrintCc(Instruction* instr) {
255 void Decoder::PrintUImm16(Instruction* instr) {
262 void Decoder::PrintSImm16(Instruction* instr) {
269 void Decoder::PrintXImm16(Instruction* instr) {
276 void Decoder::PrintXImm26(Instruction* instr) {
283 void Decoder::PrintCode(Instruction* instr) {
285 return; // Not a break or trap instruction.
304 default: // Not a break or trap instruction.
310 // Printing of instruction name.
311 void Decoder::PrintInstructionName(Instruction* instr) {
317 int Decoder::FormatRegister(Instruction* instr, const char* format) {
339 int Decoder::FormatFPURegister(Instruction* instr, const char* format) {
364 int Decoder::FormatOption(Instruction* instr, const char* format) {
438 // Format takes a formatting string for a whole instruction and prints it into
441 void Decoder::Format(Instruction* instr, const char* format) {
456 // which will just print "unknown" of the instruction bits.
457 void Decoder::Unknown(Instruction* instr) {
462 void Decoder::DecodeTypeRegister(Instruction* instr) {
798 void Decoder::DecodeTypeImmediate(Instruction* instr) {
926 void Decoder::DecodeTypeJump(Instruction* instr) {
940 // Disassemble the instruction at *instr_ptr into the output buffer.
942 Instruction* instr = Instruction::At(instr_ptr);
943 // Print raw instruction bytes.
948 case Instruction::kRegisterType: {
952 case Instruction::kImmediateType: {
956 case Instruction::kJumpType: {
965 return Instruction::kInstrSize;
1021 byte* instruction) {
1023 return d.InstructionDecode(instruction);
1028 int Disassembler::ConstantPoolSizeAt(byte* instruction) {