Diff for /np2/pccore.c between versions 1.33 and 1.34

version 1.33, 2003/12/19 23:16:06 version 1.34, 2003/12/21 16:05:25
Line 1 Line 1
 #include        "compiler.h"  #include        "compiler.h"
   #include        "strres.h"
 #include        "dosio.h"  #include        "dosio.h"
 #include        "soundmng.h"  #include        "soundmng.h"
 #include        "sysmng.h"  #include        "sysmng.h"
Line 135  static void setvsyncclock(void) { Line 136  static void setvsyncclock(void) {
         pc.vsyncclock = cnt - pc.dispclock;          pc.vsyncclock = cnt - pc.dispclock;
 }  }
   
 static void setpcclock(UINT base, UINT multiple) {  static void setpcclock(const char *modelstr, UINT base, UINT multiple) {
   
         pc.model = PCMODEL_VX;          UINT8   model;
   
           model = PCMODEL_VX;
           if (!milstr_cmp(modelstr, str_VM)) {
                   model = PCMODEL_VM;
           }
           else if (!milstr_cmp(modelstr, str_EPSON)) {
                   model = PCMODEL_EPSON | PCMODEL_VM;
           }
           pc.model = model;
   
         if (base >= ((PCBASECLOCK25 + PCBASECLOCK20) / 2)) {          if (base >= ((PCBASECLOCK25 + PCBASECLOCK20) / 2)) {
                 pc.baseclock = PCBASECLOCK25;                   // 2.5MHz                  pc.baseclock = PCBASECLOCK25;                   // 2.5MHz
Line 296  void pccore_reset(void) { Line 306  void pccore_reset(void) {
                 sound_init();                  sound_init();
         }          }
   
         setpcclock(np2cfg.baseclock, np2cfg.multiple);          setpcclock(np2cfg.model, np2cfg.baseclock, np2cfg.multiple);
         sound_changeclock();          sound_changeclock();
         beep_changeclock();          beep_changeclock();
         nevent_init();          nevent_init();
Line 550  void pccore_exec(BOOL draw) { Line 560  void pccore_exec(BOOL draw) {
                         CPU_CLEARPREFETCH();                          CPU_CLEARPREFETCH();
                 }                  }
   
 #if 1 //ndef TRACE  #if 1 // ndef TRACE
                 if (CPU_REMCLOCK > 0) {                  if (CPU_REMCLOCK > 0) {
                         if (!(CPU_TYPE & CPUTYPE_V30)) {                          if (!(CPU_TYPE & CPUTYPE_V30)) {
                                 CPU_EXEC();                                  CPU_EXEC();
Line 562  void pccore_exec(BOOL draw) { Line 572  void pccore_exec(BOOL draw) {
 #else  #else
                 while(CPU_REMCLOCK > 0) {                  while(CPU_REMCLOCK > 0) {
                         TRACEOUT(("%.4x:%.4x", CPU_CS, CPU_IP));                          TRACEOUT(("%.4x:%.4x", CPU_CS, CPU_IP));
                         i286_step();                          i286x_step();
                 }                  }
 #endif  #endif
                 nevent_progress();                  nevent_progress();

Removed from v.1.33  
changed lines
  Added in v.1.34


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