Skip to content

Commit

Permalink
ps1: fix broken controller when sideloading ps-exe
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeUsher committed Jan 3, 2024
1 parent 9e4b379 commit 4bae796
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions ares/ps1/peripheral/peripheral.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ auto Peripheral::power(bool reset) -> void {
Thread::reset();
Memory::Interface::setWaitStates(4, 4, 4);
io = {};
io.transmitStarted = 1;
io.transmitFinished = 1;
io.acknowledgeAsserted = 0;
io.baudrateReloadFactor = 1;
io.baudrateReloadValue = 0x88;
}

}
6 changes: 3 additions & 3 deletions ares/ps1/peripheral/peripheral.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ struct Peripheral : Thread, Memory::Interface {
n8 transmitData;

//JOY_STAT
n1 transmitStarted = 1;
n1 transmitFinished = 1;
n1 acknowledgeAsserted = 0;
n1 transmitStarted;
n1 transmitFinished;
n1 acknowledgeAsserted;
n1 parityError;
n1 interruptRequest;

Expand Down

0 comments on commit 4bae796

Please sign in to comment.