Fix parallel-rdp integration and reset whole state upon loading rom

This commit is contained in:
CocoSimone
2022-08-13 11:44:35 +02:00
parent ed34d9c9ba
commit e2313c212c
41 changed files with 250 additions and 92 deletions

View File

@@ -4,6 +4,19 @@
#include <n64/core/cpu/Registers.hpp>
namespace n64 {
PI::PI() {
Reset();
}
void PI::Reset() {
dramAddr = 0;
cartAddr = 0;
rdLen = 0;
wrLen = 0;
status = 0;
memset(stub, 0, 8);
}
auto PI::Read(MI& mi, u32 addr) const -> u32 {
switch(addr) {
case 0x04600000: return dramAddr;