TIP: Click on subject to list as thread! ANSI
echo: public_domain
to: Rod Speed
from: Paul Edwards
date: 1994-05-28 08:35:44
subject: interrupts

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)

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.