Expand description
Pausing the drive and knowing it has stopped: the silicon protocol, once.
Pause is a two-response command. The first response (INT3) comes
about 33,000 system clocks after the command and carries status 0x22,
“still reading”. The second (INT2) says the drive has actually stopped, and on
the project console it comes a long time later: out of a read, counted from
the first response, 5.33 sector periods at the first sector, 6.17 after a far
seek and 8.39 once the head has settled, i.e. 1.2 to 3.9 million system clocks
(hardware-tests v2.7, run FB89, records 0x340 to 0x3B8). An emulator that
completes a Pause in tens of thousands of clocks hides all of it, which is how
three games shipped code that gave up after a few hundred thousand and read
0x22 as a failed stop (OoT froze in Link’s House on the console, 2026-10-19).
What else the console does, all measured:
- A command sent between the two responses (GetStat, 4 of 4 trials) cancels the second one for good. Proving the stop by asking for the status therefore replaces waiting for INT2; it does not add to it.
- A Pause sent while a read is still seeking is refused with INT5 (status
0x03, once0x43) and no INT3, six of six; the read carries on, so the Pause has to be sent again once the seek is over. The status byte cannot say when that is (it reads0x03, neither seeking nor reading, five times of six), but the first data sector of the read can. - A GetStat at the first response reads
0x22and one 230,000 clocks later0x02, long before INT2. The reading bit is therefore not a stop signal by itself, andpause_until_stoppeduses it only after INT2 has failed to come.
pause_until_stopped is the whole protocol over the small PauseDrive
trait, so the host tests can play the console’s timings against it:
send, wait for INT2 up to COMPLETE_SPINS, fall back to polling the status
when INT2 never shows, and on a refusal wait the seek out and send again.
Enums§
- Completion
- The wait for the second answer.
- Pause
Answer - The first answer to a Pause.
- Pause
Failure - Why a Pause could not be proven.
Constants§
- ATTEMPTS
- Pauses sent at most, counting the first. A refusal waits the seek out and retries; three is enough for a seek that began between two tries.
- COMPLETE_
SPINS - Spins of the status register to wait for the second response of a Pause.
- SEEK_
SPINS - Spins to wait for the first data sector of a read whose Pause was refused, i.e. for its seek to end: the slowest seek measured is 310 ms, about 440,000 spins at 24 clocks each.
- STATUS_
POLLS - Times the status is asked, one command each (about 20,000 clocks), when the second response did not come: about 20 million clocks (0.6 s).
Traits§
- Pause
Drive - What
pause_until_stoppedneeds from the controller. Each method is one polled controller step; the implementor owns masking and acknowledging.
Functions§
- pause_
until_ stopped - Pause the drive and return only when it has stopped.