CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

Question on Where Code Resumes after Interrupt?

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
arrow
Guest







Question on Where Code Resumes after Interrupt?
PostPosted: Wed Nov 10, 2004 1:31 pm     Reply with quote

Hi

I would like to find out where the code resumes after an interrupt.
Say I have a main which is being executed. Then an interrupt occurs.
After the interrupt routine is finished, does the code go back to
the beginning of main, or to where the code was before the interrupt
occured?

Is there any way to get the code to resume where it stopped executing after the interrupt occurs?

Thank you
arrow
Mark



Joined: 07 Sep 2003
Posts: 2838
Location: Atlanta, GA

View user's profile Send private message Send e-mail

PostPosted: Wed Nov 10, 2004 1:40 pm     Reply with quote

Resumes where it left off.
SherpaDoug



Joined: 07 Sep 2003
Posts: 1640
Location: Cape Cod Mass USA

View user's profile Send private message

PostPosted: Wed Nov 10, 2004 2:32 pm     Reply with quote

That is the whole idea behind an interrupt. The Main code never knows the interrupt happened. A little time disappears and the effects of the interrupt are simply there. Just like a medical exam by space aliens. Wink
_________________
The search for better is endless. Instead simply find very good and get the job done.
treitmey



Joined: 23 Jan 2004
Posts: 1094
Location: Appleton,WI USA

View user's profile Send private message Visit poster's website

PostPosted: Wed Nov 10, 2004 4:29 pm     Reply with quote

Ha Laughing
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
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


Powered by phpBB © 2001, 2005 phpBB Group