Interrupts and variable saving
Posted: Thu Feb 02, 2023 3:37 pm
Hi.
First post here as I consider to be a SF compiler user.
I am trying to understand how to find which variable I have to save/restore entering the ISR.
In the example of this link https://www.sfcompiler.co.uk/wiki/pmwik ... r.SegCount
there is a context saving of TABLEPTR. Where did that variable came up from? Unfortunately, I could not find this variable anywhere within the example program or in the manual.
Like the above example I found others also with different variable also not appearing in the program. So the question is general. What should I save in the ISR and how am I supposed to find them?
Thank you,
Ioannis
First post here as I consider to be a SF compiler user.
I am trying to understand how to find which variable I have to save/restore entering the ISR.
In the example of this link https://www.sfcompiler.co.uk/wiki/pmwik ... r.SegCount
there is a context saving of TABLEPTR. Where did that variable came up from? Unfortunately, I could not find this variable anywhere within the example program or in the manual.
Like the above example I found others also with different variable also not appearing in the program. So the question is general. What should I save in the ISR and how am I supposed to find them?
Thank you,
Ioannis