mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-30 21:05:56 -05:00
build: Update for software defined 128 bit types
This commit is contained in:
@@ -73,9 +73,10 @@ namespace hex::plugin::disasm {
|
||||
} catch (const std::exception &e) {
|
||||
err::E0012.throwError(e.what());
|
||||
}
|
||||
|
||||
const auto syntaxString = params[1].toString();
|
||||
const auto imageBaseAddress = params[2].toUnsigned();
|
||||
const auto imageLoadAddress = params[3].toUnsigned();
|
||||
const auto imageBaseAddress = u64(params[2].toUnsigned());
|
||||
const auto imageLoadAddress = u64(params[3].toUnsigned());
|
||||
|
||||
const auto address = evaluator->getReadOffset();
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ namespace hex::plugin::disasm {
|
||||
auto data = pattern->getBytes();
|
||||
cs_insn *instructions = nullptr;
|
||||
|
||||
size_t instructionCount = cs_disasm(capstone, data.data(), data.size(), baseAddress, 0, &instructions);
|
||||
size_t instructionCount = cs_disasm(capstone, data.data(), data.size(), u64(baseAddress), 0, &instructions);
|
||||
for (size_t i = 0; i < instructionCount; i++) {
|
||||
disassembly.push_back({ instructions[i].address, { instructions[i].bytes, instructions[i].bytes + instructions[i].size }, hex::format("{} {}", instructions[i].mnemonic, instructions[i].op_str) });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user