mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 07:27:45 +00:00
UserspaceEmulator: Add 8/16 bit memory read/write operations
This commit is contained in:
parent
f8b38eabeb
commit
6f27770cea
5 changed files with 109 additions and 0 deletions
|
@ -117,7 +117,12 @@ public:
|
|||
u16 es() const { return m_segment[(int)X86::SegmentRegister::ES]; }
|
||||
u16 ss() const { return m_segment[(int)X86::SegmentRegister::SS]; }
|
||||
|
||||
u8 read_memory8(X86::LogicalAddress);
|
||||
u16 read_memory16(X86::LogicalAddress);
|
||||
u32 read_memory32(X86::LogicalAddress);
|
||||
|
||||
void write_memory8(X86::LogicalAddress, u8);
|
||||
void write_memory16(X86::LogicalAddress, u16);
|
||||
void write_memory32(X86::LogicalAddress, u32);
|
||||
|
||||
private:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue