sim: cpu_sim: print final register values at program termination