benilla-re systems structs docs

s_fastCpuMhz

global · unassigned

Address
0x80e2e0 · 4 bytes, up to 0x80e2e3
Type
const float
Meaning
Holds 1500.0, the processor frequency in MHz above which the processor class is 1
Confidence
verified, proof one
Finding
console/hardware#processor-class

Finding: Processor class in console: hardware

DetectHardware (0x641260) stores the processor class at +0x18 of the detection record at every start-up: 1 when the frequency from OsGetCpuFrequency (0x42c060), as a double times the float 1e-6 (0x80e2e4), exceeds the float 1500.0 (0x80e2e0), else 0. A rate of 1,500,000,004 Hz or more counts; from the power call, whose rates are multiples of 10⁶, 1501 MHz or more, and 1500 MHz gives 0. ConsoleDeviceInitialize then sets the flag byte 0xc4ec54 to 1, and the sound CVars register later, so SoundBufferSize (0x457520) defaults to 50 for class 1 and 100 for class 0; its flag test is always met.

The derivation is in the doc.