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

@@ -6,11 +6,11 @@
using namespace logger;
Cpu::Cpu(std::shared_ptr<Bus> bus)
Cpu::Cpu(Bus& bus)
: gpr(0)
, cpsr(0)
, spsr(0)
, bus(bus)
, bus(std::make_shared<Bus>(bus))
, gpr_banked({ { 0 }, { 0 }, { 0 }, { 0 }, { 0 }, { 0 } })
, spsr_banked({ 0, 0, 0, 0, 0 }) {
cpsr.set_mode(Mode::System);