Update print2 to save existing state of registers