Subj : Re: A really stupid Question - how to build a library To : borland.public.cpp.borlandcpp From : dkat Date : Fri Oct 08 2004 01:06 am "Ed Mulroy [TeamB]" wrote in message news:4165a320@newsgroups.borland.com... > Of course you can have multiple ISR's. You already are doing > something like this: > > start > call getvect and save the original vector > call setvect to set your ISR as the vector > run > at the end > call setvect to restore the original vector > > I do not know anything limiting you from setting a new vector when you > change modes. You can have several ISR's and set whatever one you > wish to have right now. > > . Ed OK, this is where I have a serious flaw in my understanding of how things work. I had thought I could only have one ISR in my library for any particular interrupt since I had thought declaring it basically started it up.... I can't really wrap my head around this one... must think on it longer. The ISR doesn't get called as a function or routine in the program - it gets called by the interrupt.... that is it is event driven rather than bumped off the stack (yes I'm using made up jargon ....). So what I would do would be have different initialization routines that would trigger different ISRs... (really sorry about not having the correct wording here. Am I close? .