Joined: 25 May 2004 Posts: 190 Location: Ljubljana, Slovenia
Posted: Tue Sep 19, 2006 9:01 am Post subject: I usualy do this way
It depends on your interrupt subroutine, what register are to be saved: those, used in the subroutine.
If the subroutine is in Basic, i usually do this way:
I compile subroutine extra, disasseble it and look at assemble list, which tells me, what reagisters are used.
I usually use NOSAVE option only with very simple ISR like
INCR variable or Set bitvariable
return
and variable must be one byte.
Yes, it is thrue, on 128 Bytes of RAM, Save takes about 20 bytes fo Stack.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum