Diff for /np2/pccore.c between versions 1.94 and 1.99

version 1.94, 2004/07/26 18:52:55 version 1.99, 2005/03/03 06:59:41
Line 502  static void drawscreen(void) { Line 502  static void drawscreen(void) {
                 }                  }
         }          }
         if (screenupdate) {          if (screenupdate) {
                 screenupdate = scrndraw_draw((BYTE)(screenupdate & 2));                  screenupdate = scrndraw_draw((UINT8)(screenupdate & 2));
                 drawcount++;                  drawcount++;
         }          }
 }  }
Line 548  void screenvsync(NEVENTITEM item) { Line 548  void screenvsync(NEVENTITEM item) {
   
 // ---------------------------------------------------------------------------  // ---------------------------------------------------------------------------
   
 // #define      IPTRACE                 (1 << 12)  
   
 #if defined(TRACE) && IPTRACE  
 static  UINT    trpos = 0;  
 static  UINT32  treip[IPTRACE];  
   
 void iptrace_out(void) {  
   
         FILEH   fh;  
         UINT    s;  
         UINT32  eip;  
         char    buf[32];  
   
         s = trpos;  
         if (s > IPTRACE) {  
                 s -= IPTRACE;  
         }  
         else {  
                 s = 0;  
         }  
         fh = file_create_c("his.txt");  
         while(s < trpos) {  
                 eip = treip[s & (IPTRACE - 1)];  
                 s++;  
                 SPRINTF(buf, "%.4x:%.4x\r\n", (eip >> 16), eip & 0xffff);  
                 file_write(fh, buf, strlen(buf));  
         }  
         file_close(fh);  
 }  
 #endif  
   
   
 #if defined(TRACE)  #if defined(TRACE)
 static int resetcnt = 0;  static int resetcnt = 0;
 static int execcnt = 0;  static int execcnt = 0;
 int piccnt = 0;  int piccnt = 0;
 int tr = 0;  
 UINT    cflg;  
 #endif  #endif
   
   
Line 613  void pccore_exec(BOOL draw) { Line 579  void pccore_exec(BOOL draw) {
   
         while(screendispflag) {          while(screendispflag) {
 #if defined(TRACE)  #if defined(TRACE)
         resetcnt++;                  resetcnt++;
 #endif  #endif
                 pic_irq();                  pic_irq();
                 if (CPU_RESETREQ) {                  if (CPU_RESETREQ) {
                         CPU_RESETREQ = 0;                          CPU_RESETREQ = 0;
                         CPU_SHUT();                          CPU_SHUT();
                 }                  }
   
 #if !defined(SINGLESTEPONLY)  
                 if (CPU_REMCLOCK > 0) {                  if (CPU_REMCLOCK > 0) {
                         if (!(CPU_TYPE & CPUTYPE_V30)) {                          if (!(CPU_TYPE & CPUTYPE_V30)) {
                                 CPU_EXEC();                                  CPU_EXEC();
Line 630  void pccore_exec(BOOL draw) { Line 594  void pccore_exec(BOOL draw) {
                                 CPU_EXECV30();                                  CPU_EXECV30();
                         }                          }
                 }                  }
 #else  
                 while(CPU_REMCLOCK > 0) {  
 #if IPTRACE  
                         treip[trpos & (IPTRACE - 1)] = (CPU_CS << 16) + CPU_IP;  
                         trpos++;  
 #endif  
                         i286x_step();  
 //                      i286c_step();  
                 }  
 #endif  
                 nevent_progress();                  nevent_progress();
         }          }
         artic_callback();          artic_callback();

Removed from v.1.94  
changed lines
  Added in v.1.99


RetroPC.NET-CVS <cvs@retropc.net>