mirror of
https://github.com/jscrane/r65emu.git
synced 2025-08-09 02:25:10 +00:00
support extents
This commit is contained in:
3
memory.h
3
memory.h
@@ -37,13 +37,16 @@ public:
|
||||
|
||||
protected:
|
||||
address _acc, _base;
|
||||
|
||||
private:
|
||||
friend class Memory;
|
||||
int _pages;
|
||||
};
|
||||
|
||||
// insert a new device instance
|
||||
//
|
||||
void put (Device &d, address at);
|
||||
void put (Device &d, address at, int ep) { d._pages = ep; put(d, at); }
|
||||
Device *get (address at) const { return _pages[at/page_size]; }
|
||||
|
||||
// primary access interface
|
||||
|
Reference in New Issue
Block a user