Hi, it is time to handle interrupts, and I'd like to know all the options. So I have some questions about them:
1) What could be better, overwrite H.TIMI or simply use the ON INTERVAL GOSUB (FC7FH) on TRAPTBL (FC4CH)?. And how it could be used? I am confused, they are supposed to use 3 bytes, then why the book talks about (3 * 10 bytes) and things like that?
TRAPTBL (FC4CH, 78)
contents: trap table used to handle interrupt; one table consists of
three bytes, where first byte indicates ON/OFF/STOP status
and the rest indicate the text address to be jumped to
FC4CH to FC69H (3 * 10 bytes) used in ON KEY GOSUB
FC6AH to FC6CH (3 * 1 byte) used in ON STOP GOSUB
FC6DH to FC6FH (3 * 1 byte) used in ON SPRITE GOSUB
FC70H to FC7EH (3 * 5 bytes) used in ON STRIG GOSUB
FC7FH to FC81H (3 * 1 byte) used in ON INTERVAL GOSUB
FC82H to FC99H for expansion
2) I suppose using the RST 0038h is not recommended at all.
3) Line interrupts: in this case it should be better to use other like H.KEYI (FD9AH)? How can I identify if the interrupt comes from the line interrupt and not others like RS-232? How can I know the line the interrupt was executed, if I have various line interrupts?
4) Could someone talks about non-maskable interrupts?
Thanks.
