npc,wip: group components into stages
This commit is contained in:
parent
4c540bd109
commit
fd1aae7c33
27 changed files with 2456 additions and 673 deletions
|
@ -31,7 +31,9 @@ public:
|
|||
Memory(std::filesystem::path filepath, bool is_binary, paddr_t pmem_start,
|
||||
paddr_t pmem_end)
|
||||
: pmem_start(pmem_start), pmem_end(pmem_end) {
|
||||
read_memory(filepath, is_binary);
|
||||
if (!filepath.empty()) {
|
||||
read_memory(filepath, is_binary);
|
||||
}
|
||||
}
|
||||
|
||||
const word_t &operator[](std::size_t addr) { return this->read(addr); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue