init now resets the registers.