Diff for /np2/pccore.c between versions 1.76 and 1.90

version 1.76, 2004/02/29 03:10:02 version 1.90, 2004/06/18 07:42:13
Line 52 Line 52
                                 "VX", PCBASECLOCK25, 4,                                  "VX", PCBASECLOCK25, 4,
                                 {0x48, 0x05, 0x04, 0x00, 0x01, 0x00, 0x00, 0x6e},                                  {0x48, 0x05, 0x04, 0x00, 0x01, 0x00, 0x00, 0x6e},
                                 1, 1, 2, 1, 0x000000, 0xffffff,                                  1, 1, 2, 1, 0x000000, 0xffffff,
                                 22050, 800, 4, 0,                                  22050, 500, 4, 0,
                                 {0, 0, 0}, 0xd1, 0x7f, 0xd1, 0, 0, 1,                                  {0, 0, 0}, 0xd1, 0x7f, 0xd1, 0, 0, 1,
                                 3, {0x0c, 0x0c, 0x08, 0x06, 0x03, 0x0c}, 64, 64, 64, 64, 64,                                  3, {0x0c, 0x0c, 0x08, 0x06, 0x03, 0x0c}, 64, 64, 64, 64, 64,
                                 1, 0x82,                                  1, 0x82,
Line 69 Line 69
                                                 0, 0,                                                  0, 0,
                                                 4 * PCBASECLOCK25};                                                  4 * PCBASECLOCK25};
   
 static const BYTE msw_default[8] =  
                                                         {0x48, 0x05, 0x04, 0x00, 0x01, 0x00, 0x00, 0x6e};  
   
         BYTE    screenupdate = 3;          BYTE    screenupdate = 3;
         int             screendispflag = 1;          int             screendispflag = 1;
         int             soundrenewal = 0;          int             soundrenewal = 0;
Line 262  void pccore_cfgupdate(void) { Line 259  void pccore_cfgupdate(void) {
   
         renewal = FALSE;          renewal = FALSE;
         for (i=0; i<8; i++) {          for (i=0; i<8; i++) {
                 if (np2cfg.memsw[i] != mem[MEMB_MSW + i*4]) {                  if (np2cfg.memsw[i] != mem[MEMX_MSW + i*4]) {
                         np2cfg.memsw[i] = mem[MEMB_MSW + i*4];                          np2cfg.memsw[i] = mem[MEMX_MSW + i*4];
                         renewal = TRUE;                          renewal = TRUE;
                 }                  }
         }          }
Line 349  void pccore_reset(void) { Line 346  void pccore_reset(void) {
   
         bios_initialize();          bios_initialize();
   
         if (np2cfg.ITF_WORK) {          CS_BASE = 0xf0000;
                 CS_BASE = 0xf0000;          CPU_CS = 0xf000;
                 CPU_CS = 0xf000;          CPU_IP = 0xfff0;
                 CPU_IP = 0xfff0;  
         }  
         else {  
                 for (i=0; i<8; i++) {  
                         mem[0xa3fe2 + i*4] = msw_default[i];  
                 }  
                 CS_BASE = 0xfd800;  
                 CPU_CS = 0xfd80;  
                 CPU_IP = 0x0002;  
         }  
         CPU_CLEARPREFETCH();          CPU_CLEARPREFETCH();
         sysmng_cpureset();          sysmng_cpureset();
   
Line 548  void screenvsync(NEVENTITEM item) { Line 536  void screenvsync(NEVENTITEM item) {
 // #define      IPTRACE                 (1 << 12)  // #define      IPTRACE                 (1 << 12)
   
 #if defined(TRACE) && IPTRACE  #if defined(TRACE) && IPTRACE
 static UINT             trpos = 0;  static  UINT    trpos = 0;
 static UINT32   treip[IPTRACE];  static  UINT32  treip[IPTRACE];
   
 void iptrace_out(void) {  void iptrace_out(void) {
   
Line 586  UINT cflg; Line 574  UINT cflg;
 #endif  #endif
   
   
   void pccore_postevent(UINT32 event) {   // yet!
   
           (void)event;
   }
   
 void pccore_exec(BOOL draw) {  void pccore_exec(BOOL draw) {
   
         drawframe = draw;          drawframe = draw;
         keystat_sync();  //      keystat_sync();
         soundmng_sync();          soundmng_sync();
         mouseif_sync();          mouseif_sync();
         pal_eventclear();          pal_eventclear();
Line 623  void pccore_exec(BOOL draw) { Line 616  void pccore_exec(BOOL draw) {
 #endif  #endif
                 }                  }
   
 #if 1 // ndef TRACE  #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 638  void pccore_exec(BOOL draw) { Line 631  void pccore_exec(BOOL draw) {
                         treip[trpos & (IPTRACE - 1)] = (CPU_CS << 16) + CPU_IP;                          treip[trpos & (IPTRACE - 1)] = (CPU_CS << 16) + CPU_IP;
                         trpos++;                          trpos++;
 #endif  #endif
 #if 0                          i286x_step();
                         if ((CPU_CS == 0xf800) && (CPU_IP == 0x0B5B)) {  //                      i286c_step();
                                 TRACEOUT(("%.2x %.2x %.2x %.2x %.2x %.2x %.2x %.2x %.2x %.2x",  
                                                         mem[0x9000], mem[0x9001],  
                                                         mem[0x9002], mem[0x9003],  
                                                         mem[0x9004], mem[0x9005],  
                                                         mem[0x9006], mem[0x9007],  
                                                         mem[0x9008], mem[0x9009]));  
                         }  
                         if ((CPU_CS == 0xf800) && (CPU_IP == 0x15FF)) {  
                                 TRACEOUT(("DX = %.4x / DS:DI = %.4x:%.4x [%.2x]",  
                                                                         CPU_DX, CPU_DS, CPU_DI, mem[0xa3fe0]));  
                         }  
 #endif  
 //                      if ((CPU_CS == 0x2516) && (CPU_IP == 0x97B0)) {  
 //                              TRACEOUT(("DS = %.4x", CPU_DS));  
 //                      }  
 //                      i286x_step();  
                         i286c_step();  
                 }                  }
 #endif  #endif
                 nevent_progress();                  nevent_progress();

Removed from v.1.76  
changed lines
  Added in v.1.90


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