Skip to content

Commit

Permalink
Implement SA1 I-RAM write protection
Browse files Browse the repository at this point in the history
  • Loading branch information
Morilli authored and Screwtapello committed Sep 23, 2024
1 parent 710d92c commit cdef244
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bsnes/sfc/coprocessor/sa1/iram.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ auto SA1::IRAM::readCPU(uint address, uint8 data) -> uint8 {

auto SA1::IRAM::writeCPU(uint address, uint8 data) -> void {
cpu.synchronizeCoprocessors();
if(!(sa1.mmio.siwp & 1 << (address >> 8 & 7))) return;
return write(address, data);
}

Expand All @@ -32,5 +33,6 @@ auto SA1::IRAM::readSA1(uint address, uint8 data) -> uint8 {
}

auto SA1::IRAM::writeSA1(uint address, uint8 data) -> void {
if(!(sa1.mmio.ciwp & 1 << (address >> 8 & 7))) return;
return write(address, data);
}

2 comments on commit cdef244

@Moizes82
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How do I use hotkey for speed 200% and 100%?

@Screwtapello
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a "Fast forward" hotkey that makes the game run faster as long as you hold it down, but it's not exactly 200%, it's just "as fast as your computer can manage".

Please sign in to comment.