Diff for /xmil/io/pcg.c between versions 1.4 and 1.7

version 1.4, 2004/08/04 17:09:25 version 1.7, 2004/08/12 20:09:42
Line 2 Line 2
 #include        "z80core.h"  #include        "z80core.h"
 #include        "pccore.h"  #include        "pccore.h"
 #include        "iocore.h"  #include        "iocore.h"
   #include        "nevent.h"
 #include        "vram.h"  #include        "vram.h"
 #include        "font.h"  #include        "font.h"
   
Line 48  static UINT knj_offset(void) { Line 49  static UINT knj_offset(void) {
   
 static UINT nowsyncoffset(void) {  static UINT nowsyncoffset(void) {
   
           SINT32  clock;
           UINT    h;
           UINT    v;
         UINT    ret;          UINT    ret;
           UINT    line;
   
         ret = (((v_cnt - crtc.s.CRT_YL) / crtc.s.fnty) + crtc.s.TXT_YL)          clock = nevent_getwork(NEVENT_FRAMES);
                                                                                         * crtc.s.TXT_XL + crtc.s.TXT_TOP;          if (corestat.vsync) {
         if (pccore.HSYNC_CLK) {                  clock += corestat.dispclock;
                 ret += (h_cnt * crtc.s.TXT_XL) / pccore.HSYNC_CLK;          }
         }          v = clock / RASTER_CLOCK;
           h = clock - (v * RASTER_CLOCK);
           ret = v / crtc.e.fonty;
           line = v - (ret * crtc.e.fonty);
           ret = (ret * crtc.s.reg[CRTCREG_HDISP]) + crtc.e.pos;
           ret += (h * crtc.s.reg[CRTCREG_HDISP]) / RASTER_CLOCK;
         if (ret >= 0x0800) {          if (ret >= 0x0800) {
                 ret = 0x07ff;           // オーバーフロー                  ret = 0x07ff;           // オーバーフロー
         }          }

Removed from v.1.4  
changed lines
  Added in v.1.7


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