[comp.sys.mac.programmer] Interrupts and the programmer's switch

carlton@husc9.harvard.edu (david carlton) (06/17/90)

I'm working on porting some software over to the macintosh.  Most of
the port should be fairly straightworward - but the program needs to
be interruptable.  For various reasons, I don't want to throw in calls
everywhere to check to see if keystrokes have been pressed, which is
what would seem the natural thing to do - I don't have the time to go
and rewrite the whole thing, I just need a quick and dirty solution.
The only bona-fide interrupt that I could think of is the programmer's
switch.  Unfortunately, I couldn't find any help in Inside Mac as to
how to intercept that.  So could people send me information on how to
do that, how tricky it would be, what registers, etc. would get nuked
by it, where I could find more info (Tech notes, etc.), alternate
suggestions, etc.?  I'm using Think C 4.0 and a Mac SE/30, though I
would like it to work on other macs as well.

Many thanks,
david carlton
carlton@husc9.harvard.edu