Subject: Re: old PC from interrupt handler?
To: None <magnus@MIT.EDU>
From: Allen Briggs <briggs@puma.bevd.blacksburg.va.us>
List: macbsd-general
Date: 04/13/1995 20:54:57
> Suppose I have an interrupt- how can I tell from inside the interrupt
> handler code what the PC was immediately before the interrupt
> occurred?
An argument to the interrupt handler is a frame pointer. The PC is
stored in there.
> (I want to set a VIA timer to see where the PC is inside the ROM
> routines at specific times. Will this work?)
Might--I dunno... Keep in mind that actually printing stuff out will
affect your timing... ;-)
-allen
--
Allen Briggs - end killing - allen.briggs@bev.net ** MacBSD == NetBSD/mac68k **