Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions ares/n64/rdp/io.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ auto RDP::IO::readWord(u32 address, Thread& thread) -> u32 {

if(address == 3) {
//DPS_BUFTEST_DATA
data.bit(0,31) = test.data;
data.bit(0,31) = test.data[test.address];
}

self.debugger.ioDPS(Read, address, data);
Expand Down Expand Up @@ -167,7 +167,16 @@ auto RDP::IO::writeWord(u32 address, u32 data_, Thread& thread) -> void {

if(address == 3) {
//DPS_BUFTEST_DATA
test.data = data.bit(0,31);
u32 value = data.bit(0,31);
u32 column = test.address % 4;

if(column == 2) {
value &= 0xFF;
} else if(column == 3) {
value = 0;
}

test.data[test.address] = value;
}

self.debugger.ioDPS(Write, address, data);
Expand Down
3 changes: 2 additions & 1 deletion ares/n64/rdp/rdp.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -349,8 +349,9 @@ struct RDP : Thread, Memory::RCP<RDP> {
struct Test {
n1 enable;
n7 address;
n32 data;
array<u32[128]> data;
} test;

} io{*this};
};

Expand Down
2 changes: 1 addition & 1 deletion ares/n64/rdp/serialization.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ auto RDP::serialize(serializer& s) -> void {

s(io.test.enable);
s(io.test.address);
s(io.test.data);
for(auto& d : io.test.data) s(d);
}
2 changes: 1 addition & 1 deletion ares/n64/system/serialization.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
static const string SerializerVersion = "v144";
static const string SerializerVersion = "v145";

auto System::serialize(bool synchronize) -> serializer {
serializer s;
Expand Down
Loading