Add register dump/restore feature
Add register dump/restore feature