Some general-purpose registers are guaranteed to have the same values before and after interrupts, and others are not. The rules for guaranteeing register values are as follows.
ES, CS, and general registers AX, BC, DE, and HL which belong to the register bank being usedNote
Since #pragma interrupt with register bank changing option is transformed to the codes which changes the register bank when an interrupt begins and restores to original bank when the interrupt ends, alll general registers belonging to the original register bank are guaranteed to have the same values before and after the interrupt. |
General registers AX, BC, DE, and HL which belong to the register bank not being used