Diff for /np2/i286c/memory.c between versions 1.6 and 1.7

version 1.6, 2003/11/29 03:38:26 version 1.7, 2003/12/01 10:45:46
Line 15 Line 15
   
 static void MEMCALL i286_wt(UINT32 address, REG8 value) {  static void MEMCALL i286_wt(UINT32 address, REG8 value) {
   
         mem[address & extmem.adrsmask] = (BYTE)value;          mem[address & i286core.s.adrsmask] = (BYTE)value;
 }  }
   
 static void MEMCALL tram_wt(UINT32 address, REG8 value) {  static void MEMCALL tram_wt(UINT32 address, REG8 value) {
Line 193  static void MEMCALL i286_wn(UINT32 addre Line 193  static void MEMCALL i286_wn(UINT32 addre
   
 static REG8 MEMCALL i286_rd(UINT32 address) {  static REG8 MEMCALL i286_rd(UINT32 address) {
   
         return(mem[address & extmem.adrsmask]);          return(mem[address & i286core.s.adrsmask]);
 }  }
   
 static REG8 MEMCALL tram_rd(UINT32 address) {  static REG8 MEMCALL tram_rd(UINT32 address) {
Line 283  static REG8 MEMCALL emmc_rd(UINT32 addre Line 283  static REG8 MEMCALL emmc_rd(UINT32 addre
   
 static REG8 MEMCALL i286_itf(UINT32 address) {  static REG8 MEMCALL i286_itf(UINT32 address) {
   
         if (itf.bank) {          if (i286core.s.itfbank) {
                 address = ITF_ADRS + LOW15(address);                  address = ITF_ADRS + LOW15(address);
         }          }
         return(mem[address]);          return(mem[address]);
Line 296  static void MEMCALL i286w_wt(UINT32 addr Line 296  static void MEMCALL i286w_wt(UINT32 addr
   
         BYTE    *ptr;          BYTE    *ptr;
   
         ptr = mem + (address & extmem.adrsmask);          ptr = mem + (address & i286core.s.adrsmask);
         STOREINTELWORD(ptr, value);          STOREINTELWORD(ptr, value);
 }  }
   
Line 461  static void MEMCALL emmcw_wt(UINT32 addr Line 461  static void MEMCALL emmcw_wt(UINT32 addr
         }          }
         else {          else {
                 extmem.pageptr[(address >> 14) & 3][0x3fff] = (BYTE)value;                  extmem.pageptr[(address >> 14) & 3][0x3fff] = (BYTE)value;
                 extmem.pageptr[((address + 1)>> 14) & 3][0] = (BYTE)(value >> 8);                  extmem.pageptr[((address + 1) >> 14) & 3][0] = (BYTE)(value >> 8);
         }          }
 }  }
   
Line 478  static REG16 MEMCALL i286w_rd(UINT32 add Line 478  static REG16 MEMCALL i286w_rd(UINT32 add
   
         BYTE    *ptr;          BYTE    *ptr;
   
         ptr = mem + (address & extmem.adrsmask);          ptr = mem + (address & i286core.s.adrsmask);
         return(LOADINTELWORD(ptr));          return(LOADINTELWORD(ptr));
 }  }
   
Line 600  static REG16 MEMCALL emmcw_rd(UINT32 add Line 600  static REG16 MEMCALL emmcw_rd(UINT32 add
   
 static REG16 MEMCALL i286w_itf(UINT32 address) {  static REG16 MEMCALL i286w_itf(UINT32 address) {
   
         if (itf.bank) {          if (i286core.s.itfbank) {
                 address = ITF_ADRS + LOW15(address);                  address = ITF_ADRS + LOW15(address);
         }          }
         return(LOADINTELWORD(mem + address));          return(LOADINTELWORD(mem + address));
Line 789  static REG16 MEMCALL _i286_memoryread_w( Line 789  static REG16 MEMCALL _i286_memoryread_w(
 REG8 MEMCALL i286_memoryread(UINT32 address) {  REG8 MEMCALL i286_memoryread(UINT32 address) {
   
         REG8    r;          REG8    r;
   
         r = _i286_memoryread(address);          r = _i286_memoryread(address);
         if (r & 0xffffff00) {          if (r & 0xffffff00) {
                 TRACEOUT(("error i286_memoryread %x %x", address, r));                  TRACEOUT(("error i286_memoryread %x %x", address, r));

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


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