Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Interrupt with NOSAVE option

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    www.mcselec.com Forum Index -> BASCOM-8051 Archive
View previous topic :: View next topic  
Author Message
FanieTerblanche

Bascom Member



Joined: 20 Apr 2006
Posts: 26

blank.gif
PostPosted: Tue Aug 01, 2006 3:48 pm    Post subject: Interrupt with NOSAVE option Reply with quote

Hi All,

I would like to know how to determine what registers to save when i am using the NOSAVE option for INT0.

Thanks in advance.
Back to top
View user's profile
Vilko

Bascom Member



Joined: 25 May 2004
Posts: 190
Location: Ljubljana, Slovenia

slovenia.gif
PostPosted: Tue Sep 19, 2006 9:01 am    Post subject: I usualy do this way Reply with quote

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.
Back to top
View user's profile
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    www.mcselec.com Forum Index -> BASCOM-8051 Archive All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
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