Diff for /np2/pccore.c between versions 1.50 and 1.52

version 1.50, 2004/01/23 15:05:04 version 1.52, 2004/01/25 05:41:28
Line 284  void pccore_term(void) { Line 284  void pccore_term(void) {
         fdd_eject(2);          fdd_eject(2);
         fdd_eject(3);          fdd_eject(3);
   
         extmemmng_clear();  
   
         iocore_destroy();          iocore_destroy();
   
         pc9861k_destruct();          pc9861k_destruct();
Line 326  void pccore_reset(void) { Line 324  void pccore_reset(void) {
                 sound_init();                  sound_init();
         }          }
   
         ZeroMemory(mem, 0x10fff0);                                                                      // ver0.28          ZeroMemory(mem, 0x110000);                                                                      // ver0.28
         ZeroMemory(mem + VRAM1_B, 0x18000);          ZeroMemory(mem + VRAM1_B, 0x18000);
         ZeroMemory(mem + VRAM1_E, 0x08000);          ZeroMemory(mem + VRAM1_E, 0x08000);
         ZeroMemory(mem + FONT_ADRS, 0x08000);          ZeroMemory(mem + FONT_ADRS, 0x08000);
   
         CPU_RESET();  
         CPU_TYPE = 0;  
         if (np2cfg.dipsw[2] & 0x80) {  
                 CPU_TYPE = CPUTYPE_V30;  
         }  
   
         //メモリスイッチ          //メモリスイッチ
         for (i=0; i<8; i++) {          for (i=0; i<8; i++) {
                 mem[0xa3fe2 + i*4] = np2cfg.memsw[i];                  mem[0xa3fe2 + i*4] = np2cfg.memsw[i];
         }          }
   
         fddfile_reset2dmode();  
         bios0x18_16(0x20, 0xe1);  
   
         pccore_set();          pccore_set();
         nevent_init();          nevent_init();
         CPU_SETEXTMEM(pccore.extmem);  
           CPU_RESET();
           CPU_SETEXTSIZE((UINT32)pccore.extmem);
   
           CPU_TYPE = 0;
           if (np2cfg.dipsw[2] & 0x80) {
                   CPU_TYPE = CPUTYPE_V30;
           }
         if (pccore.model & PCMODEL_EPSON) {                     // RAM ctrl          if (pccore.model & PCMODEL_EPSON) {                     // RAM ctrl
                 CPU_RAM_D000 = 0xffff;                  CPU_RAM_D000 = 0xffff;
         }          }
   
   
         sound_changeclock();          sound_changeclock();
         beep_changeclock();          beep_changeclock();
         sound_reset();          sound_reset();
Line 360  void pccore_reset(void) { Line 355  void pccore_reset(void) {
         wavemix_bind();          wavemix_bind();
 #endif  #endif
   
           fddfile_reset2dmode();
           bios0x18_16(0x20, 0xe1);
   
         iocore_reset();                                                         // サウンドでpicを呼ぶので…          iocore_reset();                                                         // サウンドでpicを呼ぶので…
         cbuscore_reset();          cbuscore_reset();
Line 574  void screenvsync(NEVENTITEM item) { Line 571  void screenvsync(NEVENTITEM item) {
   
 // ---------------------------------------------------------------------------  // ---------------------------------------------------------------------------
   
 // #define      IPTRACE                 (1 << 16)  // #define      IPTRACE                 (1 << 12)
   
 #if IPTRACE  #if defined(TRACE) && IPTRACE
 static UINT             trpos;  static UINT             trpos = 0;
 static UINT32   treip[IPTRACE];  static UINT32   treip[IPTRACE];
   
 void iptrace_out(void) {  void iptrace_out(void) {
Line 667  void pccore_exec(BOOL draw) { Line 664  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
                         if (tr) {                          if (tr) {
                                 if ((CPU_CS == 0xf760) || (CPU_CS == 0xf990)) {                                  if ((CPU_CS == 0xf760) || (CPU_CS == 0xf990)) {
                                         TRACEOUT(("%.4x:%.4x", CPU_CS, CPU_IP));                                          TRACEOUT(("%.4x:%.4x", CPU_CS, CPU_IP));
                                 }                                  }
                         }                          }
   #endif
 #if 0  #if 0
                         if ((tr & 2) && (mem[0x0471e] == '\\')) {                          if ((tr & 2) && (mem[0x0471e] == '\\')) {
                                 TRACEOUT(("DTA BREAK %.4x:%.4x", CPU_CS, CPU_IP));                                  TRACEOUT(("DTA BREAK %.4x:%.4x", CPU_CS, CPU_IP));

Removed from v.1.50  
changed lines
  Added in v.1.52


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