You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Contra III SA-1 v1.1 does not boot on a real SA-1 cart because RAM write protection is enabled by default. This version does work on the SNES core but IMO it should behave like a real cart.
This version fixes an issue regarding on how I-RAM (SA-1 internal RAM) is set up on boot code. At boot time, the I-RAM write stays disabled and you must enable it before making writes. However, my boot time attempts setting up the data bank register (DBR) that requires a stack operation (PHA - PLB) and the PHA opcode requires writing to I-RAM. Because write is disabled, the write is ignored and the DBR receives an undefined value instead (likely static randomic), which made some games not boot up at all. Contra III in particular never booted up on hardware because it requires the DBR to be 0x05 since the beginning, while Gradius III and Super R-Type had mixed results on hardware.
Now that the root cause has been found and fixed, Contra III, Gradius III and Super R-Type should work as expected on real hardware.
The SA-1 documentation in book2.pdf states that all RAM write protection is enabled by default: SBWE, CBWE, BWPA, SIWP & CIWP.
The text was updated successfully, but these errors were encountered:
Apparently both SNES and SA-1 write enable registers need to be 0 for BW-RAM protection to work. So because it sets SWEN to 1 both SNES CPU and SA-1 can write to BW-RAM.
Apparently both SNES and SA-1 write enable registers need to be 0 for BW-RAM protection to work. So because it sets SWEN to 1 both SNES CPU and SA-1 can write to BW-RAM.
Contra III SA-1 v1.1 does not boot on a real SA-1 cart because RAM write protection is enabled by default. This version does work on the SNES core but IMO it should behave like a real cart.
Contra III SA-1 v1.2 fixes this by disabling write protection:
https://github.com/VitorVilela7/SA1-Root/releases/tag/v1.8
VitorVilela7/SA1-Root@8ec85aa
VitorVilela7/SA1-Root@b67c8cc
The SA-1 documentation in book2.pdf states that all RAM write protection is enabled by default:
SBWE
,CBWE
,BWPA
,SIWP
&CIWP
.The text was updated successfully, but these errors were encountered: