Andy, Can you detail why this would be a problem with larger PICs (multiple code banks )? Thanks, Mitch ------------------------------------ Mitch Miller, Roseville, CA mitchm@ns.net ------------------------------------ -----Original Message----- From: Andy Kunz [SMTP:mtdesign@FAST.NET] Sent: Monday, December 28, 1998 7:38 AM To: PICLIST@MITVMA.MIT.EDU Subject: Re: isr without context save ? At 03:13 PM 12/28/98 +0100, you wrote: >Hi, > >Just a view seconds after my previous posting I catched that I may be >wrong. >How about this version ? > > org 4 > Int ; Interrupt Handler > > bcf INTCON,T0IF ; Reset the Interrupt Source > > incfsz Counter_Low, F ; inc low > goto $+2 ; normaly skip incrementing HIGH-byte > incfsz Counter_High, F ; inc high on roll-over > nop ; high is rolled over > > retfie This may have a problem with a large chip with multiple code banks. But for a small chip like the '84, you'll be just fine. I have used precisely this method in a '558, so I know it works. >I4m still getting sometimes confused with the "skip if ...." and goof >myself :-( Yes, it is slightly confusing ================================================================== Andy Kunz - Montana Design - http://www.users.fast.net/~montana ==================================================================