Returns PID of current process.
(0) self pid-of-self:r-op
-- save PID of this process to local register 1
self %1 local
-- spawn a new process that takes the just-obtained PID as an argument
frame ^[(pamv %0 %1 local)]
process %1 local new_process/0