Skip to content

Commit

Permalink
Fix BRAM re-lock ( issue pce-devel#111 )
Browse files Browse the repository at this point in the history
  • Loading branch information
dshadoff committed Nov 21, 2023
1 parent 3945353 commit f3a5d13
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions mednafen/src/pce/pcecd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -744,10 +744,13 @@ MDFN_FASTCALL int32 PCECD_Write(uint32 timestamp, uint32 physAddr, uint8 data)
break;

case 0x7: // $1807: D7=1 enables backup ram
if (data & 0x80)
{
bBRAMEnabled = true;
}

bBRAMEnabled = (data & 0x80) ? true : false;

//if (data & 0x80)
//{
// bBRAMEnabled = true;
//}
break;

case 0x8: // Set ADPCM address low
Expand Down

0 comments on commit f3a5d13

Please sign in to comment.