[comp.sys.apple2] Help! How do I handle SCB interrupts???

jjstrout@miavx1.acs.muohio.edu (Joe Strout Miami University, Oxford OH) (02/20/91)

Help!  I'm trying to make use of a scan-line interrupt on the GS from assembly
language.  But I have very little experience in handling interrupts at all,
and I can't seem to get it to work properly.

What I want to do is use the interrupt to get the precise timing on border
graphics -- just watching $C02E and $C02F doesn't work, because the beam is
so much faster than the processor.  With an interrupt, though, it should work
because the hardware will cause entry into the graphics routine reliably.
All the routine needs to do is a little quick color-changing and then exit
back to whatever was executing before the interrupt was generated.  How can
I do this?  If someone could give me an outline of the instructions I need
to handle the interrupt properly, or (better yet) a short sample routine, I
would be eternally grateful.  And will, of course, give due credit on whatever
program I eventually release.

Thanks in advance,

Joe Strout              Miami University                Oxford, OH
jjstrout@miamivx1.acs.muohio.edu