Skip to content

Commit 232c245

Browse files
authored
Update view_disassembler.cpp
1 parent 78ad0d2 commit 232c245

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

plugins/disassembler/source/content/views/view_disassembler.cpp

+2-3
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,9 @@ namespace hex::plugin::disasm {
126126
continue;
127127

128128
if (instruction.operators.empty())
129-
file.writeString(hex::format("{}\n", instruction.mnemonic));
129+
file.writeString(hex::format("0x{0:X} {}\n", instruction.address, instruction.mnemonic));
130130
else
131-
file.writeString(hex::format("{} {}\n", instruction.mnemonic, instruction.operators));
132-
}
131+
file.writeString(hex::format("0x{0:X} {} {}\n", instruction.address, instruction.mnemonic, instruction.operators)); }
133132
});
134133
});
135134
});

0 commit comments

Comments
 (0)