Saving registers in an interrupted computation in the program stack