From d7d7a32d477e8bfb66863fc332129dd909b3c013 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 11 Apr 2020 13:57:28 +0200 Subject: LibX86: Disassemble unknown opcodes as "db %#02x" --- Libraries/LibX86/Instruction.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Libraries') diff --git a/Libraries/LibX86/Instruction.cpp b/Libraries/LibX86/Instruction.cpp index 9d7ecc92bc..e4ae2367f5 100644 --- a/Libraries/LibX86/Instruction.cpp +++ b/Libraries/LibX86/Instruction.cpp @@ -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(); -- cgit v1.2.3