Skip to main content
← PSoXide SDK guides and examples · SDK 80d1c329e977 · All Cargo features enabled; check feature gates before use.

Module pause

Module pause 

Source
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, once 0x43) 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 reads 0x03, neither seeking nor reading, five times of six), but the first data sector of the read can.
  • A GetStat at the first response reads 0x22 and one 230,000 clocks later 0x02, long before INT2. The reading bit is therefore not a stop signal by itself, and pause_until_stopped uses 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.
PauseAnswer
The first answer to a Pause.
PauseFailure
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§

PauseDrive
What pause_until_stopped needs 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.