Added uCode generation for restoring old register values at the end of
functions