MCPcopy Create free account
hub / github.com/beefytech/Beef / Decode

Method Decode

IDEHelper/X86.cpp:491–506  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

489}
490
491bool X86CPU::Decode(uint32 address, DbgModuleMemoryCache* memoryCache, X86Instr* inst)
492{
493 inst->mAddress = address;
494 inst->mX86 = this;
495
496 uint64 size = 0;
497 uint8 data[15];
498 memoryCache->Read(address, data, 15);
499
500 mDisAsm->CommentStream = &inst->mAnnotationStream;
501 ArrayRef<uint8_t> dataArrayRef(data, data + 15);
502 MCDisassembler::DecodeStatus S = mDisAsm->getInstruction(inst->mMCInst, size, dataArrayRef, address, nulls());
503 inst->mSize = (int)size;
504
505 return S == MCDisassembler::Success;
506}
507
508bool X86CPU::Decode(uint32 baseAddress, const uint8* dataBase, int dataLength, const uint8* dataPtr, X86Instr* inst)
509{

Callers 3

DisassembleAtRawMethod · 0.45
DisassembleAtMethod · 0.45
DecodeInstructionMethod · 0.45

Calls 1

ReadMethod · 0.45

Tested by

no test coverage detected