Skip to content

Commit

Permalink
add a hack for Decap Attack
Browse files Browse the repository at this point in the history
Should delay the pull-up affect instead, but probably nothing needs
this whole thing anyway.
  • Loading branch information
notaz committed Oct 13, 2020
1 parent 93589da commit 1d366b1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pico/memory.c
Expand Up @@ -270,7 +270,12 @@ static NOINLINE u32 port_read(int i)
u32 in, out;

out = data_reg & ctrl_reg;
out |= 0x7f & ~ctrl_reg; // pull-ups

// pull-ups: should be 0x7f, but Decap Attack has a bug where it temp.
// disables output before doing TH-low read, so don't emulate it for TH.
// Decap Attack reportedly doesn't work on Nomad but works on must
// other MD revisions (different pull-up strength?).
out |= 0x3f & ~ctrl_reg;

in = port_readers[i](i, out);

Expand Down

0 comments on commit 1d366b1

Please sign in to comment.