Diff for /np2/pccore.c between versions 1.21 and 1.22

version 1.21, 2003/11/28 08:01:32 version 1.22, 2003/11/30 11:20:55
Line 488  void screenvsync(NEVENTITEM item) { Line 488  void screenvsync(NEVENTITEM item) {
         (void)item;          (void)item;
 }  }
   
   
 // ---------------------------------------------------------------------------  // ---------------------------------------------------------------------------
   
   #if defined(TRACE)
   static int resetcnt = 0;
   static int execcnt = 0;
   int piccnt = 0;
   #endif
   
 void pccore_exec(BOOL draw) {  void pccore_exec(BOOL draw) {
   
         drawframe = draw;          drawframe = draw;
Line 508  void pccore_exec(BOOL draw) { Line 515  void pccore_exec(BOOL draw) {
 //      nevent_get1stevent();  //      nevent_get1stevent();
   
         while(screendispflag) {          while(screendispflag) {
   #if defined(TRACE)
           resetcnt++;
   #endif
                 pic_irq();                  pic_irq();
                 if (cpuio.reset_req) {                  if (cpuio.reset_req) {
                         cpuio.reset_req = 0;                          cpuio.reset_req = 0;
Line 520  void pccore_exec(BOOL draw) { Line 530  void pccore_exec(BOOL draw) {
                         i286_resetprefetch();                          i286_resetprefetch();
                 }                  }
   
 #if 1   // ndef TRACE  #if 1 // ndef TRACE
                 if (I286_REMCLOCK > 0) {                  if (I286_REMCLOCK > 0) {
                         if (!(CPUTYPE & CPUTYPE_V30)) {                          if (!(CPUTYPE & CPUTYPE_V30)) {
                                 i286();                                  i286();
Line 531  void pccore_exec(BOOL draw) { Line 541  void pccore_exec(BOOL draw) {
                 }                  }
 #else  #else
                 while(I286_REMCLOCK > 0) {                  while(I286_REMCLOCK > 0) {
                           TRACEOUT(("%.4x:%.4x", I286_CS, I286_IP));
                         i286_step();                          i286_step();
                 }                  }
 #endif  #endif
Line 541  void pccore_exec(BOOL draw) { Line 552  void pccore_exec(BOOL draw) {
         diskdrv_callback();          diskdrv_callback();
         calendar_inc();          calendar_inc();
         sound_sync();                                                                                                   // happy!          sound_sync();                                                                                                   // happy!
   
   #if defined(TRACE)
           execcnt++;
           if (execcnt >= 60) {
                   TRACEOUT(("resetcnt = %d / pic %d", resetcnt, piccnt));
                   execcnt = 0;
                   resetcnt = 0;
                   piccnt = 0;
           }
   #endif
 }  }
   

Removed from v.1.21  
changed lines
  Added in v.1.22


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