move controller logic to PIF

This commit is contained in:
CocoSimone
2023-02-19 14:54:26 +01:00
parent 50ec9a8a9e
commit e665f2d6e9
11 changed files with 154 additions and 151 deletions

View File

@@ -33,6 +33,7 @@ void RSP::Reset() {
divInLoaded = false;
}
/*
inline void logRSP(const RSP& rsp, const u32 instr) {
Util::print("{:04X} {:08X} ", rsp.oldPC, instr);
for (auto gpr : rsp.gpr) {
@@ -63,6 +64,7 @@ inline void logRSP(const RSP& rsp, const u32 instr) {
Util::print(" {:04X} {:04X} {:02X}\n", rsp.GetVCC(), rsp.GetVCO(), rsp.GetVCE());
Util::print("DMEM: {:02X}{:02X}\n", rsp.dmem[0x3c4], rsp.dmem[0x3c5]);
}
*/
void RSP::Step(Registers& regs, Mem& mem) {
gpr[0] = 0;