As there are no Push and POP instructions, when an interrupt occurs how is the data backed-up?
Answer Although there are no PUSH or POP instructions, the programmer can still assign memory space. (Example db: ACCStack for ACC Storage) to store the interrupt backup data. To do this first store the ACC data in an area of memory, after which the status register and other data to be stored can be stored in similar dedicated memory locations. Before returning to the main program the data should be retrieved similarly but in a reverse order i.e. ACC is the last to be retrieved. When this is completed a RETI instruction should be executed to return to the main program.
Related Questions
- Since the Data Call instructions for capturing exposure data and developing the audit file specifications do not require a premium to be reported, is the premium amount required for audit purposes?
- If the communication between the cabinet and the SIM occurs via HTTP, how is the data protected since it is transmitted in plain text?
- As there are no Push and POP instructions, when an interrupt occurs how is the data backed-up?