Diff for /np2/vram/maketgrp.c between versions 1.4 and 1.6

version 1.4, 2003/12/09 15:49:14 version 1.6, 2005/02/07 14:46:13
Line 1 Line 1
 #include        "compiler.h"  #include        "compiler.h"
 #include        "memory.h"  #include        "cpucore.h"
 #include        "pccore.h"  #include        "pccore.h"
 #include        "iocore.h"  #include        "iocore.h"
 #include        "vram.h"  #include        "vram.h"
Line 19 Line 19
   
 void maketextgrph(int plane, int text_renewal, int grph_renewal) {  void maketextgrph(int plane, int text_renewal, int grph_renewal) {
   
         BYTE    TEXT_LR;          UINT8   TEXT_LR;
         int             TEXT_PL;          int             TEXT_PL;
         int             TEXT_BL;          int             TEXT_BL;
         int             TEXT_CL;          int             TEXT_CL;
Line 28  void maketextgrph(int plane, int text_re Line 28  void maketextgrph(int plane, int text_re
         int             topline;          int             topline;
         int             lines;          int             lines;
         int             nowline;          int             nowline;
         BYTE    wait2;          UINT8   wait2;
         UINT    m_pitch;          UINT    m_pitch;
         UINT    esi;          UINT    esi;
         UINT    m_scr;          UINT    m_scr;
Line 38  void maketextgrph(int plane, int text_re Line 38  void maketextgrph(int plane, int text_re
         UINT    s_scr;          UINT    s_scr;
         int             s_scrp;          int             s_scrp;
         int             s_scrpmask;          int             s_scrpmask;
         BYTE    GRPH_LR;          UINT8   GRPH_LR;
         BYTE    GRPH_LRcnt;          UINT8   GRPH_LRcnt;
         UINT32  ppage;          UINT32  ppage;
         UINT32  gbit;          UINT32  gbit;
         UINT    ymax;          UINT    ymax;
         BYTE    *q;          UINT8   *q;
         BYTE    wait1;          UINT8   wait1;
         BYTE    TEXT_LRcnt;          UINT8   TEXT_LRcnt;
         BOOL    reloadline;          BOOL    reloadline;
         int             new_flag;          int             new_flag;
         int             linecnt;          int             linecnt;
Line 53  void maketextgrph(int plane, int text_re Line 53  void maketextgrph(int plane, int text_re
         UINT    edi;          UINT    edi;
         UINT    x;          UINT    x;
         int             i;          int             i;
         BYTE    color[TEXTXMAX];          UINT8   color[TEXTXMAX];
         UINT32  bit[160];          UINT32  bit[160];
   
         TEXT_LR = gdc.m.para[GDC_CSRFORM] & 0x1f;          TEXT_LR = gdc.m.para[GDC_CSRFORM] & 0x1f;
Line 188  void maketextgrph(int plane, int text_re Line 188  void maketextgrph(int plane, int text_re
                                 if (!grph_new) {                                  if (!grph_new) {
                                         UINT vc = ebp;                                          UINT vc = ebp;
                                         for (x=0; x<TEXTXMAX; x++) {                                          for (x=0; x<TEXTXMAX; x++) {
                                                 if (vramupdate[vc] & (BYTE)gbit) {                                                  if (vramupdate[vc] & (UINT8)gbit) {
                                                         grph_new = 1;                                                          grph_new = 1;
                                                         break;                                                          break;
                                                 }                                                  }
Line 199  void maketextgrph(int plane, int text_re Line 199  void maketextgrph(int plane, int text_re
                         if (grph_new) {                          if (grph_new) {
                                 UINT32 vc = ebp + ppage;                                  UINT32 vc = ebp + ppage;
                                 UINT32 *p;                                  UINT32 *p;
                                 BYTE *d;                                  UINT8 *d;
                                 UINT xdot;                                  UINT xdot;
                                 p = bit;                                  p = bit;
                                 for (x=0; x<TEXTXMAX; x++) {                                  for (x=0; x<TEXTXMAX; x++) {
Line 207  void maketextgrph(int plane, int text_re Line 207  void maketextgrph(int plane, int text_re
                                         p += 2;                                          p += 2;
                                         vc = VRAMADDRMASKEX(vc + 1);                                          vc = VRAMADDRMASKEX(vc + 1);
                                 }                                  }
                                 d = (BYTE *)bit;                                  d = (UINT8 *)bit;
                                 ZeroMemory(q, TEXTXMAX * 8);                                  ZeroMemory(q, TEXTXMAX * 8);
                                 // width80                                  // width80
                                 xdot = 8 - displaymoder;                                  xdot = 8 - displaymoder;
Line 221  void maketextgrph(int plane, int text_re Line 221  void maketextgrph(int plane, int text_re
                                         xdot = 8;                                          xdot = 8;
                                 }                                  }
                                 q += displaymoder;                                  q += displaymoder;
                                 renewal_line[y] |= (BYTE)gbit;                                  renewal_line[y] |= (UINT8)gbit;
                         }                          }
                         else {                          else {
                                 q += TEXTXMAX * 8;                                  q += TEXTXMAX * 8;
Line 277  void maketextgrph(int plane, int text_re Line 277  void maketextgrph(int plane, int text_re
   
 void maketextgrph40(int plane, int text_renewal, int grph_renewal) {  void maketextgrph40(int plane, int text_renewal, int grph_renewal) {
   
         BYTE    TEXT_LR;          UINT8   TEXT_LR;
         int             TEXT_PL;          int             TEXT_PL;
         int             TEXT_BL;          int             TEXT_BL;
         int             TEXT_CL;          int             TEXT_CL;
Line 286  void maketextgrph40(int plane, int text_ Line 286  void maketextgrph40(int plane, int text_
         int             topline;          int             topline;
         int             lines;          int             lines;
         int             nowline = 0;          int             nowline = 0;
         BYTE    wait2 = 0;          UINT8   wait2 = 0;
         UINT    m_pitch;          UINT    m_pitch;
         UINT    esi;          UINT    esi;
         UINT    m_scr;          UINT    m_scr;
Line 296  void maketextgrph40(int plane, int text_ Line 296  void maketextgrph40(int plane, int text_
         UINT    s_scr;          UINT    s_scr;
         int             s_scrp;          int             s_scrp;
         int             s_scrpmask;          int             s_scrpmask;
         BYTE    GRPH_LR;          UINT8   GRPH_LR;
         BYTE    GRPH_LRcnt;          UINT8   GRPH_LRcnt;
         UINT32  ppage;          UINT32  ppage;
         UINT32  gbit;          UINT32  gbit;
         UINT    ymax;          UINT    ymax;
         BYTE    *q;          UINT8   *q;
         BYTE    wait1;          UINT8   wait1;
         BYTE    TEXT_LRcnt;          UINT8   TEXT_LRcnt;
         BOOL    reloadline;          BOOL    reloadline;
         int             new_flag;          int             new_flag;
         int             linecnt;          int             linecnt;
Line 311  void maketextgrph40(int plane, int text_ Line 311  void maketextgrph40(int plane, int text_
         UINT    edi;          UINT    edi;
         UINT    x;          UINT    x;
         int             i;          int             i;
         BYTE    color[TEXTXMAX];          UINT8   color[TEXTXMAX];
         UINT32  bit[160];          UINT32  bit[160];
   
         TEXT_LR = gdc.m.para[GDC_CSRFORM] & 0x1f;          TEXT_LR = gdc.m.para[GDC_CSRFORM] & 0x1f;
Line 446  void maketextgrph40(int plane, int text_ Line 446  void maketextgrph40(int plane, int text_
                                 if (!grph_new) {                                  if (!grph_new) {
                                         UINT vc = ebp;                                          UINT vc = ebp;
                                         for (x=0; x<TEXTXMAX; x++) {                                          for (x=0; x<TEXTXMAX; x++) {
                                                 if (vramupdate[vc] & (BYTE)gbit) {                                                  if (vramupdate[vc] & (UINT8)gbit) {
                                                         grph_new = 1;                                                          grph_new = 1;
                                                         break;                                                          break;
                                                 }                                                  }
Line 457  void maketextgrph40(int plane, int text_ Line 457  void maketextgrph40(int plane, int text_
                         if (grph_new) {                          if (grph_new) {
                                 UINT32 vc = ebp + ppage;                                  UINT32 vc = ebp + ppage;
                                 UINT32 *p;                                  UINT32 *p;
                                 BYTE *d;                                  UINT8 *d;
                                 UINT xdot;                                  UINT xdot;
                                 p = bit;                                  p = bit;
                                 for (x=0; x<TEXTXMAX; x++) {                                  for (x=0; x<TEXTXMAX; x++) {
Line 465  void maketextgrph40(int plane, int text_ Line 465  void maketextgrph40(int plane, int text_
                                         p += 2;                                          p += 2;
                                         vc = VRAMADDRMASKEX(vc + 1);                                          vc = VRAMADDRMASKEX(vc + 1);
                                 }                                  }
                                 d = (BYTE *)bit;                                  d = (UINT8 *)bit;
                                 ZeroMemory(q, TEXTXMAX * 8);                                  ZeroMemory(q, TEXTXMAX * 8);
                                 // width40                                  // width40
                                 xdot = 16 - displaymoder;                                  xdot = 16 - displaymoder;
Line 479  void maketextgrph40(int plane, int text_ Line 479  void maketextgrph40(int plane, int text_
                                         xdot = 16;                                          xdot = 16;
                                 }                                  }
                                 q += displaymoder;                                  q += displaymoder;
                                 renewal_line[y] |= (BYTE)gbit;                                  renewal_line[y] |= (UINT8)gbit;
                         }                          }
                         else {                          else {
                                 q += TEXTXMAX * 8;                                  q += TEXTXMAX * 8;

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


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