[Icc-430] Interrupt handler wrapper preserves R8,9 - repost

Jerry Durand jdurand at interstellar.com
Tue Jan 23 14:30:24 PST 2007


At 12:27 PM 1/23/2007, Kris Heidenstrom wrote:

>I think the descriptions in the help are right and
>up-to-date, and I think the interrupt handler
>wrapper is out-of-date. I wrote my own wrapper
>in assembler, which does not preserve R8 and
>R9, and everything seemed to work OK.
>Am I missing something here?


Not sure if I understand you.  During an interrupt, you have to save 
EVERYTHING, since there's no telling what you were doing when the 
interrupt happened.  Also, be really careful about calling functions 
from inside an interrupt, many functions are not re-entrant and if 
you call them from an interrupt in the middle of some other routine 
calling them, your program will most probably do some very strange things.



-- 
Jerry Durand, Durand Interstellar, Inc.  www.interstellar.com
tel: +1 408 356-3886, USA toll free: 1 866 356-3886
Skype:  jerrydurand



More information about the Icc-430 mailing list