1
Fork 0
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:
Andreas Kling 2020-04-11 13:57:28 +02:00
parent 95df0847c5
commit d7d7a32d47

View file

@ -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();