1
0
mirror of https://github.com/jscrane/r65emu.git synced 2024-10-14 05:24:09 +00:00

support extents

This commit is contained in:
Stephen Crane 2014-10-22 20:14:23 +01:00
parent 1df2a2d030
commit 72f53947d2

View File

@ -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