Skip to main content

DISK_BYTE_CYCLES

Constant DISK_BYTE_CYCLES 

Source
pub const DISK_BYTE_CYCLES: u32 = 149;
Expand description

Nominal CPU cycles between disk byte transfers.

Real hardware streams bits at roughly 96.4 kHz; with 8 bits + framing this works out to ~149 CPU cycles (≈1.789773 MHz / 96.4 kHz / 8 ≈ 149) per transferred byte. Emulators converge on this value (Mesen2, FCEUX). Stage 1 uses the fixed nominal cadence; the BIOS only requires bytes to arrive in order at a rate it can service.