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

version 1.6, 2003/12/27 11:55:23 version 1.7, 2004/01/05 15:47:18
Line 14 Line 14
         BYTE    mem[0x200000];          BYTE    mem[0x200000];
   
   
 #define USE_HIMEM  #define USE_HIMEM               0x10fff0
   
 // ---- write byte  // ---- write byte
   
Line 811  REG8 MEMCALL __i286_memoryread(UINT32 ad Line 811  REG8 MEMCALL __i286_memoryread(UINT32 ad
                 return(mem[address]);                  return(mem[address]);
         }          }
 #if defined(USE_HIMEM)  #if defined(USE_HIMEM)
         else if (address >= 0x10fff0) {          else if (address >= USE_HIMEM) {
                 address -= 0x100000;                  address -= 0x100000;
                 if (address < CPU_EXTMEMSIZE) {                  if (address < CPU_EXTMEMSIZE) {
                         return(CPU_EXTMEM[address]);                          return(CPU_EXTMEM[address]);
Line 834  REG16 MEMCALL __i286_memoryread_w(UINT32 Line 834  REG16 MEMCALL __i286_memoryread_w(UINT32
                 return(LOADINTELWORD(mem + address));                  return(LOADINTELWORD(mem + address));
         }          }
 #if defined(USE_HIMEM)  #if defined(USE_HIMEM)
         else if (address >= (0x10fff0 - 1)) {          else if (address >= (USE_HIMEM - 1)) {
                 address -= 0x100000;                  address -= 0x100000;
                 if (address == (0x00fff0 - 1)) {                  if (address == (USE_HIMEM - 0x100000 - 1)) {
                         ret = mem[0x100000 + address];                          ret = mem[0x100000 + address];
                 }                  }
                 else if (address < CPU_EXTMEMSIZE) {                  else if (address < CPU_EXTMEMSIZE) {
Line 882  void MEMCALL __i286_memorywrite(UINT32 a Line 882  void MEMCALL __i286_memorywrite(UINT32 a
                 mem[address] = (BYTE)value;                  mem[address] = (BYTE)value;
         }          }
 #if defined(USE_HIMEM)  #if defined(USE_HIMEM)
         else if (address >= 0x10fff0) {          else if (address >= USE_HIMEM) {
                 address -= 0x100000;                  address -= 0x100000;
                 if (address < CPU_EXTMEMSIZE) {                  if (address < CPU_EXTMEMSIZE) {
                         CPU_EXTMEM[address] = (BYTE)value;                          CPU_EXTMEM[address] = (BYTE)value;
Line 900  void MEMCALL __i286_memorywrite_w(UINT32 Line 900  void MEMCALL __i286_memorywrite_w(UINT32
                 STOREINTELWORD(mem + address, value);                  STOREINTELWORD(mem + address, value);
         }          }
 #if defined(USE_HIMEM)  #if defined(USE_HIMEM)
         else if (address >= (0x10fff0 - 1)) {          else if (address >= (USE_HIMEM - 1)) {
                 address -= 0x100000;                  address -= 0x100000;
                 if (address == (0x00fff0 - 1)) {                  if (address == (USE_HIMEM - 0x100000 - 1)) {
                         mem[address] = (BYTE)value;                          mem[address] = (BYTE)value;
                 }                  }
                 else if (address < CPU_EXTMEMSIZE) {                  else if (address < CPU_EXTMEMSIZE) {

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


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