Diff for /np2/i286c/i286c_0f.c between versions 1.3 and 1.5

version 1.3, 2003/10/17 11:10:02 version 1.5, 2003/10/21 11:22:05
Line 1 Line 1
 #include        "compiler.h"  #include        "compiler.h"
 #include        "i286.h"  #include        "i286.h"
 #include        "i286c.h"  #include        "i286c.h"
 #include        "i286c.mcr"  
 #include        "memory.h"  #include        "memory.h"
 #include        "nevent.h"  #include        "i286c.mcr"
   
   
 I286_0F _sgdt(UINT op) {  I286_0F _sgdt(UINT op) {
   
         I286_CLOCK(11)          I286_WORKCLOCK(11);
         if (op < 0xc0) {          if (op < 0xc0) {
                 UINT16 ad = c_get_ea[op]();                  UINT16 ad = c_get_ea[op]();
                 i286_memorywrite_w(ad + EA_FIX, i286reg.GDTR.limit);                  i286_memorywrite_w(ad + EA_FIX, i286reg.GDTR.limit);
Line 25  I286_0F _sgdt(UINT op) { Line 24  I286_0F _sgdt(UINT op) {
   
 I286_0F _sidt(UINT op) {  I286_0F _sidt(UINT op) {
   
         I286_CLOCK(12)          I286_WORKCLOCK(12);
         if (op < 0xc0) {          if (op < 0xc0) {
                 UINT16 ad = c_get_ea[op]();                  UINT16 ad = c_get_ea[op]();
                 i286_memorywrite_w(ad + EA_FIX, i286reg.IDTR.limit);                  i286_memorywrite_w(ad + EA_FIX, i286reg.IDTR.limit);
Line 42  I286_0F _sidt(UINT op) { Line 41  I286_0F _sidt(UINT op) {
   
 I286_0F _lgdt(UINT op) {  I286_0F _lgdt(UINT op) {
   
         I286_CLOCK(11)          I286_WORKCLOCK(11);
         if (op < 0xc0) {          if (op < 0xc0) {
                 UINT16 ad = c_get_ea[op]();                  UINT16 ad = c_get_ea[op]();
                 i286reg.GDTR.limit = i286_memoryread_w(ad + EA_FIX);                  i286reg.GDTR.limit = i286_memoryread_w(ad + EA_FIX);
Line 60  I286_0F _lgdt(UINT op) { Line 59  I286_0F _lgdt(UINT op) {
   
 I286_0F _lidt(UINT op) {  I286_0F _lidt(UINT op) {
   
         I286_CLOCK(11)          I286_WORKCLOCK(11);
         if (op < 0xc0) {          if (op < 0xc0) {
                 UINT16 ad = c_get_ea[op]();                  UINT16 ad = c_get_ea[op]();
                 i286reg.IDTR.limit = i286_memoryread_w(ad + EA_FIX);                  i286reg.IDTR.limit = i286_memoryread_w(ad + EA_FIX);
Line 79  I286_0F _lidt(UINT op) { Line 78  I286_0F _lidt(UINT op) {
 I286_0F _smsw(UINT op) {  I286_0F _smsw(UINT op) {
   
         if (op >= 0xc0) {          if (op >= 0xc0) {
                 I286_CLOCK(3)                  I286_WORKCLOCK(3);
                 *(reg16_b20[op]) = i286reg.MSW;                  *(reg16_b20[op]) = i286reg.MSW;
         }          }
         else {          else {
                 I286_CLOCK(6)                  I286_WORKCLOCK(6);
                 i286_memorywrite_w(c_calc_ea_dst[op](), i286reg.MSW);                  i286_memorywrite_w(c_calc_ea_dst[op](), i286reg.MSW);
         }          }
 }  }
Line 91  I286_0F _smsw(UINT op) { Line 90  I286_0F _smsw(UINT op) {
 I286_0F _lmsw(UINT op) {  I286_0F _lmsw(UINT op) {
   
         if (op >= 0xc0) {          if (op >= 0xc0) {
                 I286_CLOCK(2)                  I286_WORKCLOCK(2);
                 i286reg.MSW = *(reg16_b20[op]);                  i286reg.MSW = *(reg16_b20[op]);
         }          }
         else {          else {
                 I286_CLOCK(3)                  I286_WORKCLOCK(3);
                 i286reg.MSW = i286_memoryread_w(c_calc_ea_dst[op]());                  i286reg.MSW = i286_memoryread_w(c_calc_ea_dst[op]());
         }          }
 }  }
Line 111  I286_0F _loadall286(void) { Line 110  I286_0F _loadall286(void) {
   
         UINT16  tmp;          UINT16  tmp;
   
         I286_CLOCK(195);          I286_WORKCLOCK(195);
         i286reg.MSW = LOADINTELWORD(mem + 0x804);          i286reg.MSW = LOADINTELWORD(mem + 0x804);
         tmp = LOADINTELWORD(mem + 0x818);          tmp = LOADINTELWORD(mem + 0x818);
         I286_OV = tmp & O_FLAG;          I286_OV = tmp & O_FLAG;
Line 156  I286EXT i286c_cts(void) { Line 155  I286EXT i286c_cts(void) {
                 _loadall286();                  _loadall286();
         }          }
         else {          else {
                 I286_CLOCK(20)                  I286_WORKCLOCK(20);
                 INT_NUM(6, ip - 1);                  INT_NUM(6, ip - 1);
         }          }
 }  }

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


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