Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix Super FX voxel demo #241

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
sfc: Fix regression with several SuperFX games like Doom
  • Loading branch information
jbo-85 committed May 31, 2022
commit 1cfd9c6a5da380386f7947e82a21ff4e1b221ad6
5 changes: 3 additions & 2 deletions bsnes/sfc/coprocessor/superfx/memory.cpp
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
auto SuperFX::read(uint addr, uint8 data) -> uint8 {
if((addr & 0xc00000) == 0x000000) { //$00-3f:0000-7fff,:8000-ffff
addr = Bus::mirror(addr, rom.size());
while(!regs.scmr.ron) {
step(6);
synchronizeCPU();
if(synchronizing()) break;
}
return rom.read((((addr & 0x3f0000) >> 1) | (addr & 0x7fff)));
addr = (((addr & 0x3f0000) >> 1) | (addr & 0x7fff));
addr = Bus::mirror(addr, rom.size());
return rom.read(addr);
}

if((addr & 0xe00000) == 0x400000) { //$40-5f:0000-ffff