get rid of memory.cc/.hh

also fix bus' shared pointer in cpu
TODO: put cpu in bus not the other way around

Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
2024-06-14 05:37:10 +05:30
parent ffcdf5f3a7
commit 9397140473
16 changed files with 456 additions and 486 deletions

View File

@@ -10,7 +10,7 @@
namespace matar {
class Cpu {
public:
Cpu(const Bus& bus) noexcept;
Cpu(std::shared_ptr<Bus>) noexcept;
void step();
void chg_mode(const Mode to);