6.8 sleep (2066)

2070:

“PS” is the address of the processor status word. The processor status is stored in the register “s” (0164, 0175);

2071:

“rp” is set to the address of the entry in the array “proc” of the current process (still “proc[0]” at this stage!);

2072:

“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.

2093:

“swtch” is then called.