changeset 1716:ee5e227eb005

Fixed problem where D.AltIRQ was being set to D.Clock at term time. Now, D.AltIRQ is saved at Init time and restored at Term time.
author boisy
date Mon, 16 Aug 2004 01:10:40 +0000
parents fa2ada33b05e
children 023c3f57d08b
files level2/modules/cc3io.asm
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/level2/modules/cc3io.asm	Mon Aug 16 01:10:03 2004 +0000
+++ b/level2/modules/cc3io.asm	Mon Aug 16 01:10:40 2004 +0000
@@ -95,7 +95,8 @@
          ENDC
          std  G.CurDev,x
 *         std   >WGlobal+G.CurDev
-         ldx   <D.Clock		change altirq routine to go to clock
+*         ldx   <D.Clock		change altirq routine to go to clock
+         ldx   G.OrgAlt,x	get original D.AltIRQ address
          stx   <D.AltIRQ
          puls  cc		restore IRQs
 
@@ -191,6 +192,8 @@
          puls  u,y,x,b,a	restore saved regs
          std   <D.Proc		and restore current process
 
+         ldx   <D.AltIRQ	get original D.AltIRQ address
+         stx   >WGlobal+G.OrgAlt	save in window globals for later
          leax  >CC3Irq,pcr	set up AltIRQ vector in DP
          stx   <D.AltIRQ