Diff for /xmil/pccore.c between versions 1.1 and 1.3

version 1.1, 2004/08/01 05:31:29 version 1.3, 2004/08/02 13:38:46
Line 10 Line 10
 #include        "x1_io.h"  #include        "x1_io.h"
 #include        "x1_crtc.h"  #include        "x1_crtc.h"
 #include        "x1_vram.h"  #include        "x1_vram.h"
 #include        "x1_fdc.h"  
 #include        "draw.h"  #include        "draw.h"
 #include        "sound.h"  #include        "sound.h"
 #include        "sndctrl.h"  #include        "sndctrl.h"
Line 124  BYTE reset_x1(BYTE ROM_TYPE, BYTE SOUND_ Line 123  BYTE reset_x1(BYTE ROM_TYPE, BYTE SOUND_
   
         calendar_initialize();          calendar_initialize();
   
         init_fdc();  
         subcpu_reset();          subcpu_reset();
         ppi_reset();          ppi_reset();
         init_crtc();          init_crtc();
Line 134  BYTE reset_x1(BYTE ROM_TYPE, BYTE SOUND_ Line 132  BYTE reset_x1(BYTE ROM_TYPE, BYTE SOUND_
         cmt_reset();          cmt_reset();
         ctc_reset();          ctc_reset();
         dmac_reset();          dmac_reset();
           fdc_reset();
         pcg_reset();          pcg_reset();
         sio_reset();          sio_reset();
         sndboard_reset();          sndboard_reset();
Line 236  extern BYTE disp_flashscreen; Line 235  extern BYTE disp_flashscreen;
         s_cnt = 0;          s_cnt = 0;
         xmilcfg.DISPSYNC &= 1;          xmilcfg.DISPSYNC &= 1;
         inttiming = xmilcfg.CPU8MHz & 1;          inttiming = xmilcfg.CPU8MHz & 1;
   //      TRACEOUT(("*sync"));
   
         while(s_cnt < 266) {          while(s_cnt < 266) {
                 while(h_cnt < pccore.HSYNC_CLK) {                  while(h_cnt < pccore.HSYNC_CLK) {
   #if defined(TRACE)
   //                      TRACEOUT(("%.4x", Z80_PC));
   //                      if (Z80_PC == 0x8198) {
   //                              TRACEOUT(("---->sound"));
   //                      }
   //                      if (Z80_PC == 0x8188) {
   //                              TRACEOUT(("-- poll sound"));
   //                      }
   #endif
 #if IPTRACE  #if IPTRACE
                         treip[trpos & (IPTRACE - 1)] = Z80_PC;                          treip[trpos & (IPTRACE - 1)] = Z80_PC;
                         trpos++;                          trpos++;
Line 265  extern BYTE disp_flashscreen; Line 274  extern BYTE disp_flashscreen;
                 }                  }
                 v_cnt++;                  v_cnt++;
                 if (crtc.CRT_YL == v_cnt) {                  if (crtc.CRT_YL == v_cnt) {
   //                      TRACEOUT(("--->sync"));
                         pcg.r.vsync = 1;                          pcg.r.vsync = 1;
                         if (xmilcfg.DISPSYNC == 1) {                          if (xmilcfg.DISPSYNC == 1) {
                                 xmilcfg.DISPSYNC |= 0x80;                                  xmilcfg.DISPSYNC |= 0x80;

Removed from v.1.1  
changed lines
  Added in v.1.3


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