SaturnRingLibrary 0.9.2
SGL wrapper
Loading...
Searching...
No Matches

◆ SetClockMode()

void SRL::System::SetClockMode ( ClockMode mode)
inlinestatic

Switch the system clock frequency.

Parameters
modeTarget clock mode (26 MHz or 28 MHz)

Calls the BIOS entry at 0x6000320. This triggers a partial hardware reset via SMPC command. Processing time is ~130 ms.

Hardware Side Effects:
Affected Result
VDP1, VDP2, SCSP Registers reset - must be re-initialized
DRAM Content destroyed
Slave SH2 Stopped (OFF)
Master SH2 FRT, SCI Reset (enters standby during switch)
SDRAM, CD block Preserved
Warning
After calling this function you must re-initialize VDP1, VDP2 and SCSP. The TV mode must be set quickly to avoid sync glitches.
See also
GetClockMode()