Except for registers PSW and PC, there are no registers guaranteed to have the same values before and after an interrupt.Note
Since MACR is not guaranteed to have the same values before and after an interrupt, it is recommended to use not MACH/MACHU instructions but the corresponding intrinsic functions to rewrite MACR. Because interrupts are disabled in these functions and then, multiply-accumulate operations using MACR are guaranteed to be executed correctly. |