1
0
mirror of https://github.com/jscrane/r65emu.git synced 2024-12-21 12:29:51 +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: protected:
address _acc, _base; address _acc, _base;
private: private:
friend class Memory;
int _pages; int _pages;
}; };
// insert a new device instance // insert a new device instance
// //
void put (Device &d, address at); 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]; } Device *get (address at) const { return _pages[at/page_size]; }
// primary access interface // primary access interface