Rewrite the mipsI/II/III pending-slot code.