mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:47:34 +00:00
LibX86: Disassemble unknown opcodes as "db %#02x"
This commit is contained in:
parent
95df0847c5
commit
d7d7a32d47
1 changed files with 3 additions and 0 deletions
|
@ -1286,6 +1286,9 @@ String Instruction::to_string(u32 origin, bool x32) const
|
|||
|
||||
String Instruction::to_string_internal(u32 origin, bool x32) const
|
||||
{
|
||||
if (!m_descriptor)
|
||||
return String::format("db %#02x", m_op);
|
||||
|
||||
StringBuilder builder;
|
||||
|
||||
String mnemonic = String(m_descriptor->mnemonic).to_lowercase();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue