added arg to save_regs()