mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:37:35 +00:00
LibX86+UserspaceEmulator: Introduce AddressSize and OperandSize enums
These replace the bools a32 and o32, which will make implementing 64-bit sizes possible. :^)
This commit is contained in:
parent
7cd43deb28
commit
a7268c3c74
6 changed files with 276 additions and 152 deletions
|
@ -23,7 +23,7 @@ public:
|
|||
if (!m_stream.can_read())
|
||||
return {};
|
||||
#if ARCH(I386)
|
||||
return Instruction::from_stream(m_stream, true, true);
|
||||
return Instruction::from_stream(m_stream, OperandSize::Size32, AddressSize::Size32);
|
||||
#else
|
||||
dbgln("FIXME: Implement disassembly support for x86_64");
|
||||
return {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue