Diff for /np2/lio/gput1.c between versions 1.16 and 1.17

version 1.16, 2005/02/07 14:46:12 version 1.17, 2005/05/20 13:59:47
Line 371  static REG8 putsub(GLIO lio, const LIOPU Line 371  static REG8 putsub(GLIO lio, const LIOPU
                         flag >>= 1;                          flag >>= 1;
                         if (flag & 8) {                          if (flag & 8) {
                                 pt.baseptr = mem + lio->draw.base + lioplaneadrs[pl];                                  pt.baseptr = mem + lio->draw.base + lioplaneadrs[pl];
                                 MEML_READSTR(lput->seg, off, pt.pat, datacnt);                                  MEMR_READS(lput->seg, off, pt.pat, datacnt);
                                 if (lput->sw) {                                  if (lput->sw) {
                                         off += datacnt;                                          off += datacnt;
                                 }                                  }
Line 473  REG8 lio_gget(GLIO lio) { Line 473  REG8 lio_gget(GLIO lio) {
         UINT    pl;          UINT    pl;
   
         lio_updatedraw(lio);          lio_updatedraw(lio);
         MEML_READSTR(CPU_DS, CPU_BX, &dat, sizeof(dat));          MEMR_READS(CPU_DS, CPU_BX, &dat, sizeof(dat));
         x = (SINT16)LOADINTELWORD(dat.x1);          x = (SINT16)LOADINTELWORD(dat.x1);
         y = (SINT16)LOADINTELWORD(dat.y1);          y = (SINT16)LOADINTELWORD(dat.y1);
         x2 = (SINT16)LOADINTELWORD(dat.x2);          x2 = (SINT16)LOADINTELWORD(dat.x2);
Line 509  REG8 lio_gget(GLIO lio) { Line 509  REG8 lio_gget(GLIO lio) {
         if (leng < (size + 4)) {          if (leng < (size + 4)) {
                 return(LIO_ILLEGALFUNC);                  return(LIO_ILLEGALFUNC);
         }          }
         MEML_WRITE16(seg, off, (REG16)x2);          MEMR_WRITE16(seg, off, (REG16)x2);
         MEML_WRITE16(seg, off+2, (REG16)y2);          MEMR_WRITE16(seg, off+2, (REG16)y2);
         off += 4;          off += 4;
         gt.addr = (x >> 3) + (y * 80);          gt.addr = (x >> 3) + (y * 80);
         if (lio->draw.flag & LIODRAW_UPPER) {          if (lio->draw.flag & LIODRAW_UPPER) {
Line 526  REG8 lio_gget(GLIO lio) { Line 526  REG8 lio_gget(GLIO lio) {
                         if (mask & 8) {                          if (mask & 8) {
                                 gt.baseptr = mem + lio->draw.base + lioplaneadrs[pl];                                  gt.baseptr = mem + lio->draw.base + lioplaneadrs[pl];
                                 getvram(&gt, pat);                                  getvram(&gt, pat);
                                 MEML_WRITESTR(seg, off, pat, datacnt);                                  MEMR_WRITES(seg, off, pat, datacnt);
                                 off += datacnt;                                  off += datacnt;
                         }                          }
                 }                  }
Line 547  REG8 lio_gput1(GLIO lio) { Line 547  REG8 lio_gput1(GLIO lio) {
         UINT    size;          UINT    size;
   
         lio_updatedraw(lio);          lio_updatedraw(lio);
         MEML_READSTR(CPU_DS, CPU_BX, &dat, sizeof(dat));          MEMR_READS(CPU_DS, CPU_BX, &dat, sizeof(dat));
         lput.x = (SINT16)LOADINTELWORD(dat.x);          lput.x = (SINT16)LOADINTELWORD(dat.x);
         lput.y = (SINT16)LOADINTELWORD(dat.y);          lput.y = (SINT16)LOADINTELWORD(dat.y);
         lput.off = (UINT16)(LOADINTELWORD(dat.off) + 4);          lput.off = (UINT16)(LOADINTELWORD(dat.off) + 4);
         lput.seg = LOADINTELWORD(dat.seg);          lput.seg = LOADINTELWORD(dat.seg);
         lput.mode = dat.mode;          lput.mode = dat.mode;
         leng = LOADINTELWORD(dat.leng);          leng = LOADINTELWORD(dat.leng);
         lput.width = MEML_READ16(lput.seg, lput.off - 4);          lput.width = MEMR_READ16(lput.seg, lput.off - 4);
         lput.height = MEML_READ16(lput.seg, lput.off - 2);          lput.height = MEMR_READ16(lput.seg, lput.off - 2);
         size = ((lput.width + 7) >> 3) * lput.height;          size = ((lput.width + 7) >> 3) * lput.height;
         if (leng < (size + 4)) {          if (leng < (size + 4)) {
                 return(LIO_ILLEGALFUNC);                  return(LIO_ILLEGALFUNC);
Line 598  REG8 lio_gput2(GLIO lio) { Line 598  REG8 lio_gput2(GLIO lio) {
         REG16   size;          REG16   size;
   
         lio_updatedraw(lio);          lio_updatedraw(lio);
         MEML_READSTR(CPU_DS, CPU_BX, &dat, sizeof(dat));          MEMR_READS(CPU_DS, CPU_BX, &dat, sizeof(dat));
         lput.x = (SINT16)LOADINTELWORD(dat.x);          lput.x = (SINT16)LOADINTELWORD(dat.x);
         lput.y = (SINT16)LOADINTELWORD(dat.y);          lput.y = (SINT16)LOADINTELWORD(dat.y);
         lput.off = 0x104e;          lput.off = 0x104e;
Line 633  REG8 lio_gput2(GLIO lio) { Line 633  REG8 lio_gput2(GLIO lio) {
                 size = bios0x18_14(lput.seg, 0x104c, jis);                  size = bios0x18_14(lput.seg, 0x104c, jis);
         }          }
         else {          else {
                 MEML_WRITESTR(lput.seg, lput.off, mem + (LIO_SEGMENT << 4) +                  MEMR_WRITES(lput.seg, lput.off, mem + (LIO_SEGMENT << 4) +
                                                                                 LIO_FONT + ((pat - 1) << 4), 0x10);                                                                                  LIO_FONT + ((pat - 1) << 4), 0x10);
                 size = 0x0102;                  size = 0x0102;
         }          }

Removed from v.1.16  
changed lines
  Added in v.1.17


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