Re: Differences between interrupt service routine (ISR) and a subroutine




Tom Lucas wrote:

- the CPU flags are stored on the stack in addition to the return
address

That is true (although I suspect some pedants will find an example of
systems that don't).

:)

The ARM CPU copies the return address and the CPU flags into special
registers. If you need reentrant interrupts, you need to copy them to
the stack yourself.

.