added more registers to interrupt frame and implemented sprintf