mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 13:47:45 +00:00
UserspaceEmulator: Convert the XOR instruction to inline assembly
This commit is contained in:
parent
9db588daf1
commit
76b9fb258d
2 changed files with 31 additions and 6 deletions
|
@ -213,6 +213,12 @@ public:
|
|||
m_eflags |= new_flags & (Flags::OF | Flags::SF | Flags::ZF | Flags::AF | Flags::PF);
|
||||
}
|
||||
|
||||
void set_flags_oszpc(u32 new_flags)
|
||||
{
|
||||
m_eflags &= ~(Flags::OF | Flags::SF | Flags::ZF | Flags::PF | Flags::CF);
|
||||
m_eflags |= new_flags & (Flags::OF | Flags::SF | Flags::ZF | Flags::PF | Flags::CF);
|
||||
}
|
||||
|
||||
u16 cs() const { return m_segment[(int)X86::SegmentRegister::CS]; }
|
||||
u16 ds() const { return m_segment[(int)X86::SegmentRegister::DS]; }
|
||||
u16 es() const { return m_segment[(int)X86::SegmentRegister::ES]; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue