hide NOP bytes by default
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
926b1d6a82
commit
812d1d632f
|
@ -412,7 +412,9 @@ void decodeImage(const std::string &fileName) {
|
|||
decodedInstruction2 = Instruction::Instruction::decodeInstructionFromBytes(nextAddress, imageObject.getBaseImage());
|
||||
if(decodedInstruction2 != nullptr && decodedInstruction2->getCommand() == Instruction::Instruction::CommandOp::LOAD){
|
||||
auto loadPointer = reinterpret_cast<const Instruction::Load&>(*decodedInstruction2);
|
||||
ctx.setNop(loadPointer.getAddress());
|
||||
for(auto nopAddr = loadPointer.getAddress(); nopAddr < loadPointer.getEndAddress(); nopAddr += 4){
|
||||
ctx.setNop(nopAddr);
|
||||
}
|
||||
|
||||
uint32_t targetAddress = loadPointer.address;
|
||||
std::string stringData;
|
||||
|
@ -498,6 +500,10 @@ void decodeImage(const std::string &fileName) {
|
|||
(instruction->getAddress() - prevAddress) < 1024) {
|
||||
std::cout << "\n\n";
|
||||
for (uint32_t addr = prevAddress; addr < instruction->getAddress(); addr += 4) {
|
||||
if(ctx.isNop(addr)){
|
||||
continue;
|
||||
}
|
||||
|
||||
std::stringstream op;
|
||||
std::string printable;
|
||||
op << std::hex << std::setw(6) << std::setfill('0') << addr << " ";
|
||||
|
|
Loading…
Reference in a new issue