Diff for /np2/pccore.c between versions 1.47 and 1.49

version 1.47, 2004/01/23 06:03:40 version 1.49, 2004/01/23 12:04:07
Line 76  static const BYTE msw_default[8] = Line 76  static const BYTE msw_default[8] =
         int             soundrenewal = 0;          int             soundrenewal = 0;
         BOOL    drawframe;          BOOL    drawframe;
         UINT    drawcount = 0;          UINT    drawcount = 0;
           BOOL    hardwarereset = FALSE;
   
   
 // ---------------------------------------------------------------------------  // ---------------------------------------------------------------------------
Line 178  static void pccore_set(void) { Line 179  static void pccore_set(void) {
         pccore.extmem = 0;          pccore.extmem = 0;
   
         // HDDの接続 (I/Oの使用状態が変わるので..          // HDDの接続 (I/Oの使用状態が変わるので..
 //      if (np2cfg.dipsw[1] & 0x20) {          if (np2cfg.dipsw[1] & 0x20) {
                 pccore.hddif |= PCHDD_IDE;                  pccore.hddif |= PCHDD_IDE;
 //      }          }
         pccore.hddif |= PCHDD_SCSI;          pccore.hddif |= PCHDD_SCSI;
   
         // サウンドボードの接続          // サウンドボードの接続
Line 365  void pccore_reset(void) { Line 366  void pccore_reset(void) {
         cbuscore_bind();          cbuscore_bind();
         fmboard_bind();          fmboard_bind();
   
         timing_reset();  
         fddmtr_init();          fddmtr_init();
         calendar_init();          calendar_init();
         vram_init();          vram_init();
Line 396  void pccore_reset(void) { Line 396  void pccore_reset(void) {
 #if defined(SUPPORT_HOSTDRV)  #if defined(SUPPORT_HOSTDRV)
         hostdrv_reset();          hostdrv_reset();
 #endif  #endif
   
           timing_reset();
 }  }
   
 static void drawscreen(void) {  static void drawscreen(void) {
Line 605  static int resetcnt = 0; Line 607  static int resetcnt = 0;
 static int execcnt = 0;  static int execcnt = 0;
 int piccnt = 0;  int piccnt = 0;
 int tr = 0;  int tr = 0;
 UINT    gr = 0;  UINT    cflg;
 #endif  #endif
   
         UINT    cflg;  
   
 void pccore_exec(BOOL draw) {  void pccore_exec(BOOL draw) {
   
Line 647  void pccore_exec(BOOL draw) { Line 648  void pccore_exec(BOOL draw) {
 #endif  #endif
                 }                  }
   
 #if 1 // ndef TRACE  #if 0 // 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 685  void pccore_exec(BOOL draw) { Line 686  void pccore_exec(BOOL draw) {
                                 }                                  }
                         }                          }
 #endif  #endif
                         {  #if 0
                                 UINT r = (gdcs.grphdisp & GDCSCRN_ENABLE);                          if ((CPU_CS == 0x0620) || (CPU_CS == 0x08a0)) {
                                 if (gr != r) {                                  TRACEOUT(("%.4x:%.4x", CPU_CS, CPU_IP));
                                         TRACEOUT(("gdcs.grphdisp = %.2x [%.4x:%.4x]", r, CPU_CS, CPU_IP));  
                                         gr = r;  
                                 }  
                         }                          }
   #endif
                         i286x_step();                          i286x_step();
 //                      i286c_step();  //                      i286c_step();
                 }                  }
Line 705  void pccore_exec(BOOL draw) { Line 704  void pccore_exec(BOOL draw) {
         S98_sync();          S98_sync();
         sound_sync();                                                                                                   // happy!          sound_sync();                                                                                                   // happy!
   
           if (hardwarereset) {
                   hardwarereset = FALSE;
                   pccore_cfgupdate();
                   pccore_reset();
           }
   
 #if defined(TRACE)  #if defined(TRACE)
         execcnt++;          execcnt++;
         if (execcnt >= 60) {          if (execcnt >= 60) {

Removed from v.1.47  
changed lines
  Added in v.1.49


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