mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:47:45 +00:00
LibX86: Run the instruction decoder in 32-bit mode by default
Let's assume a 32-bit execution environment unless otherwise specified.
This commit is contained in:
parent
8f503da93f
commit
e5cde0082a
2 changed files with 2 additions and 2 deletions
|
@ -319,7 +319,7 @@ public:
|
||||||
|
|
||||||
u8 cc() const { return m_has_sub_op ? m_sub_op & 0xf : m_op & 0xf; }
|
u8 cc() const { return m_has_sub_op ? m_sub_op & 0xf : m_op & 0xf; }
|
||||||
|
|
||||||
String to_string(u32 origin, bool x32) const;
|
String to_string(u32 origin, bool x32 = true) const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Instruction(InstructionStream&, bool o32, bool a32);
|
Instruction(InstructionStream&, bool o32, bool a32);
|
||||||
|
|
|
@ -20,7 +20,7 @@ int main(int argc, char** argv)
|
||||||
auto insn = disassembler.next();
|
auto insn = disassembler.next();
|
||||||
if (!insn.has_value())
|
if (!insn.has_value())
|
||||||
break;
|
break;
|
||||||
out() << String::format("%08x", offset) << " " << insn.value().to_string(offset, true);
|
out() << String::format("%08x", offset) << " " << insn.value().to_string(offset);
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue