[UNTESTED] refactor how instructions are parsed

Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
2023-09-14 10:12:30 +05:30
parent 3cf5cbd024
commit 0b674c7c64
11 changed files with 742 additions and 389 deletions

View File

@@ -1,6 +1,7 @@
#pragma once
#include "bus.hh"
#include "instruction.hh"
#include "psr.hh"
#include <cstdint>
@@ -50,5 +51,5 @@ class Cpu {
} spsr_banked; // banked saved program status registers
void chg_mode(const Mode to);
std::string exec_arm(const uint32_t insn);
void exec_arm(const ArmInstruction instruction);
};