Diff for /np2/pccore.c between versions 1.46 and 1.48

version 1.46, 2004/01/22 08:40:30 version 1.48, 2004/01/23 08:44:30
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 662  void pccore_exec(BOOL draw) { Line 665  void pccore_exec(BOOL draw) {
                         trpos++;                          trpos++;
 #endif  #endif
                         if (tr) {                          if (tr) {
                                 TRACEOUT(("%.4x:%.4x", CPU_CS, CPU_IP));                                  if ((CPU_CS == 0xf760) || (CPU_CS == 0xf990)) {
                                           TRACEOUT(("%.4x:%.4x", CPU_CS, CPU_IP));
                                   }
                         }                          }
 #if 0  #if 0
                         if ((tr & 2) && (mem[0x0471e] == '\\')) {                          if ((tr & 2) && (mem[0x0471e] == '\\')) {
Line 682  void pccore_exec(BOOL draw) { Line 687  void pccore_exec(BOOL draw) {
                                 }                                  }
                         }                          }
 #endif  #endif
 //                      i286x_step();                          {
                         i286c_step();                                  UINT r = (gdcs.grphdisp & GDCSCRN_ENABLE);
                                   if (gr != r) {
                                           TRACEOUT(("gdcs.grphdisp = %.2x [%.4x:%.4x]", r, CPU_CS, CPU_IP));
                                           gr = r;
                                   }
                           }
                           i286x_step();
   //                      i286c_step();
                 }                  }
 #endif  #endif
                 nevent_progress();                  nevent_progress();
Line 695  void pccore_exec(BOOL draw) { Line 707  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.46  
changed lines
  Added in v.1.48


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