PE>> I am using an interrupt handler in my comms routines, and I noticed
PE>> that I do not have "stop interrupts" as the very
first instruction.
PE>> I would have thought I needed to do that? What happens if interrupts
PE>> occur in my interrupt handler?
RS> Cant you answer questions like this from the example code ?
I ascertained that by looking at the assembler that was generated by the
sample code. The function with the "interrupt" keyword in front
of it saves all the registers onto the stack. From memory of the C64 days,
the first thing you were meant to do was to disable interrupts, before
saving the registers. I thought if the timer interrupted me, when I was in
the middle of saving the registers, I might lose some of the registers?
Perhaps not. BFN.
Paul
--- GoldED/2 2.42.G1114
* Origin: This one HAS to be original XYPVH (3:711/934.9)
|