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

version 1.2, 2003/10/17 07:17:20 version 1.4, 2003/10/17 12:49:52
Line 47  const BYTE iflags[256] = {     // Z_FLAG Line 47  const BYTE iflags[256] = {     // Z_FLAG
   
 // ----  // ----
   
         DWORD   EA_FIX;          UINT32  EA_FIX;
         BYTE    *reg8_b53[256];          BYTE    *reg8_b53[256];
         BYTE    *reg8_b20[256];          BYTE    *reg8_b20[256];
         UINT16  *reg16_b53[256];          UINT16  *reg16_b53[256];
         UINT16  *reg16_b20[256];          UINT16  *reg16_b20[256];
         BYTE    szpcflag[0x200];          BYTE    szpcflag[0x200];
         BYTE    szpflag_w[0x10000];  
         CALCEA  c_calc_ea_dst[256];          CALCEA  c_calc_ea_dst[256];
         CALCLEA c_calc_lea[192];          CALCLEA c_calc_lea[192];
         GETLEA  c_get_ea[192];          GETLEA  c_get_ea[192];
   
   #if !defined(CPUW2TEST)
           BYTE    szpflag_w[0x10000];
   #endif
   
   
 static UINT32 ea_nop(void) {  static UINT32 ea_nop(void) {
   
Line 116  void i286_initialize(void) { Line 119  void i286_initialize(void) {
         for (; i<0x100; i++) {          for (; i<0x100; i++) {
                 c_calc_ea_dst[i] = ea_nop;                  c_calc_ea_dst[i] = ea_nop;
         }          }
   
   #if !defined(CPUW2TEST)
         for (i=0; i<0x10000; i++) {          for (i=0; i<0x10000; i++) {
                 f = P_FLAG;                  f = P_FLAG;
                 for (bit=0x80; bit; bit>>=1) {                  for (bit=0x80; bit; bit>>=1) {
Line 131  void i286_initialize(void) { Line 136  void i286_initialize(void) {
                 }                  }
                 szpflag_w[i] = f;                  szpflag_w[i] = f;
         }          }
   #endif
 }  }
   
 void i286_reset(void) {  void i286_reset(void) {
Line 144  void i286_reset(void) { Line 150  void i286_reset(void) {
 void i286_resetprefetch(void) {  void i286_resetprefetch(void) {
 }  }
   
 void CPUCALL i286_intnum(DWORD vect, WORD IP) {  void CPUCALL i286_intnum(UINT vect, UINT16 IP) {
   
 const BYTE      *ptr;  const BYTE      *ptr;
   
Line 164  const BYTE *ptr; Line 170  const BYTE *ptr;
   
 void CPUCALL i286_interrupt(BYTE vect) {  void CPUCALL i286_interrupt(BYTE vect) {
   
         BYTE    op;          UINT    op;
 const BYTE      *ptr;  const BYTE      *ptr;
   
         op = i286_memoryread(I286_IP + CS_BASE);          op = i286_memoryread(I286_IP + CS_BASE);
Line 181  const BYTE *ptr; Line 187  const BYTE *ptr;
         ptr = I286_MEM + (vect * 4);          ptr = I286_MEM + (vect * 4);
         I286_IP = LOADINTELWORD(ptr+0);                         // real mode!          I286_IP = LOADINTELWORD(ptr+0);                         // real mode!
         I286_CS = LOADINTELWORD(ptr+2);                         // real mode!          I286_CS = LOADINTELWORD(ptr+2);                         // real mode!
         CS_BASE = (UINT32)I286_CS << 4;          CS_BASE = I286_CS << 4;
         I286_CLOCK(20)          I286_CLOCK(20)
 }  }
   

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


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