Diff for /np2/i286c/i286c.c between versions 1.1.1.1 and 1.2

version 1.1.1.1, 2003/10/16 17:57:37 version 1.2, 2003/10/17 07:17:20
Line 8 Line 8
 #include        "i286c.mcr"  #include        "i286c.mcr"
   
   
         I286REGS        i286r;          I286REG         i286reg;
         I286STAT        i286s;  
         I286DTR         GDTR;  
         I286DTR         IDTR;  
         UINT16          MSW;  
   
 const BYTE iflags[256] = {                                      // Z_FLAG, S_FLAG, P_FLAG  const BYTE iflags[256] = {                                      // Z_FLAG, S_FLAG, P_FLAG
                         0x44, 0x00, 0x00, 0x04, 0x00, 0x04, 0x04, 0x00,                          0x44, 0x00, 0x00, 0x04, 0x00, 0x04, 0x04, 0x00,
Line 99  void i286_initialize(void) { Line 95  void i286_initialize(void) {
                 pos = ((i & 0x20)?0:1);                  pos = ((i & 0x20)?0:1);
 #endif  #endif
                 pos += ((i >> 3) & 3) * 2;                  pos += ((i >> 3) & 3) * 2;
                 reg8_b53[i] = ((BYTE *)&i286r) + pos;                  reg8_b53[i] = ((BYTE *)&I286_REG) + pos;
 #if defined(BYTESEX_LITTLE)  #if defined(BYTESEX_LITTLE)
                 pos = ((i & 0x4)?1:0);                  pos = ((i & 0x4)?1:0);
 #else  #else
                 pos = ((i & 0x4)?0:1);                  pos = ((i & 0x4)?0:1);
 #endif  #endif
                 pos += (i & 3) * 2;                  pos += (i & 3) * 2;
                 reg8_b20[i] = ((BYTE *)&i286r) + pos;                  reg8_b20[i] = ((BYTE *)&I286_REG) + pos;
                 reg16_b53[i] = ((UINT16 *)&i286r) + ((i >> 3) & 7);                  reg16_b53[i] = ((UINT16 *)&I286_REG) + ((i >> 3) & 7);
                 reg16_b20[i] = ((UINT16 *)&i286r) + (i & 7);                  reg16_b20[i] = ((UINT16 *)&I286_REG) + (i & 7);
         }          }
   
         for (i=0; i<0xc0; i++) {          for (i=0; i<0xc0; i++) {
Line 140  void i286_initialize(void) { Line 136  void i286_initialize(void) {
 void i286_reset(void) {  void i286_reset(void) {
   
         i286_initialize();          i286_initialize();
         ZeroMemory(&i286r, sizeof(i286r));          ZeroMemory(&i286reg, sizeof(i286reg));
         ZeroMemory(&i286s, sizeof(i286s));  
         I286_CS = 0x1fc0;          I286_CS = 0x1fc0;
         CS_BASE = 0x1fc00;          CS_BASE = 0x1fc00;
         ZeroMemory(&GDTR, sizeof(GDTR));  
         ZeroMemory(&IDTR, sizeof(IDTR));  
         MSW = 0;  
 }  }
   
 void i286_resetprefetch(void) {  void i286_resetprefetch(void) {

Removed from v.1.1.1.1  
changed lines
  Added in v.1.2


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