Implement linear memory model
Closed this issue · 3 comments
ZVasilii commented
Now memory is implemented using std::unordered map
for simplicity. This model cannot accurately represent real virtual memory, which has to be linear and sequential. New implementation of memory should have "array of bytes" semantics
Additionally, memory interface for instructions lb
and lh
etc. should be implemented.
Bryanskiy commented
Can you provide any description for this issue? Your aims isn't clearly enough for me.
ZVasilii commented
Can you provide any description for this issue? Your aims isn't clearly enough for me.
Done
derzhavin3016 commented
I think you should also provide a memory interface to load a range of bytes by start address.
For example:
template <std::forward_iterator It>
void loadRange(Addr start, It begin, It end);
Maybe you can add here requires
clause to check underlying type and/or its size