chore: minor changes

Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
2023-09-13 04:15:16 +05:30
parent 8a04eade92
commit 387f3c8f07
7 changed files with 17 additions and 17 deletions

View File

@@ -1,8 +1,8 @@
#include "bus.hh"
#include <memory>
Bus::Bus(std::shared_ptr<Memory> memory)
: memory(memory) {}
Bus::Bus(Memory& memory)
: memory(std::make_shared<Memory>(memory)) {}
uint8_t
Bus::read_byte(size_t address) {