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

@@ -5,6 +5,15 @@
#include <n64/core/mmio/Interrupt.hpp>
namespace n64 {
RDP::RDP() {
Reset();
}
void RDP::Reset() {
dpc.status.raw = 0x80;
memset(cmd_buf, 0, 0x100000);
}
static const int cmd_lens[64] = {
2, 2, 2, 2, 2, 2, 2, 2, 8, 12, 24, 28, 24, 28, 40, 44,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,