diff engine.c @ 53:fe88cea67ef0

clock interrupt get time
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sun, 22 Jul 2018 17:55:06 +0900
parents 5217f23f2f9e
children
line wrap: on
line diff
--- a/engine.c	Sun Jul 22 15:52:39 2018 +0900
+++ b/engine.c	Sun Jul 22 17:55:06 2018 +0900
@@ -248,7 +248,6 @@
 #endif
         do_trace(tracefile); 
    }
-   if(escape){ SAVEREGS do_escape(); LOADREGS }
    if(irq) {
     if(irq==1&&!(iccreg&0x10)) { /* standard IRQ */
 			 PUSHWORD(ipcreg)
@@ -274,6 +273,7 @@
     irq=0;
    }
   }
+  if(escape){ SAVEREGS do_escape(); LOADREGS }
   iflag=0;
  flaginstr:  /* $10 and $11 instructions return here */
   ireg=mem(ipcreg++);