added saving of rdx and r10 registers