Skip to content

Commit

Permalink
mcd: fix subcpu reset behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
TascoDLX authored and LukeUsher committed Feb 18, 2025
1 parent 54c898f commit fb96de3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ares/md/mcd/io-external.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ auto MCD::writeExternalIO(n1 upper, n1 lower, n24 address, n16 data) -> void {
} else {
if(io.run && !data.bit(0)) resetCpu();
io.run = data.bit(0);
io.request = data.bit(1);
io.halt = !io.run || io.request;
io.request = io.run ? data.bit(1) : 1; // asserting reset forces busreq (confirmed by eke)
io.halt = io.request;
}
}
if(upper) {
Expand Down

0 comments on commit fb96de3

Please sign in to comment.