“PS” is the address of the processor status word. The processor status is stored in the register “s” (0164, 0175);
“rp” is set to the address of the entry in the array “proc” of the current process (still “proc[0]” at this stage!);
“pri” is negative, so the “else” branch is taken, setting the status of the current process (0) to “SSLEEP”. The reason for “going to sleep” and the “awakening priority” are noted.
“swtch” is then called.