Diff for /np2/i286x/memory.h between versions 1.8 and 1.10

version 1.8, 2004/03/07 23:04:51 version 1.10, 2005/05/20 13:59:47
Line 46  enum { Line 46  enum {
 extern "C" {  extern "C" {
 #endif  #endif
   
 extern  BYTE    mem[0x200000];  extern  UINT8   mem[0x200000];
   
 void MEMCALL i286_memorymap(UINT type);  void MEMCALL i286_memorymap(UINT type);
 void MEMCALL i286_romareamap(UINT16 map);  
 void MEMCALL i286_vram_dispatch(UINT operate);  void MEMCALL i286_vram_dispatch(UINT operate);
   
 BYTE MEMCALL i286_memoryread(UINT32 address);  UINT8 MEMCALL i286_memoryread(UINT32 address);
 UINT16 MEMCALL i286_memoryread_w(UINT32 address);  UINT16 MEMCALL i286_memoryread_w(UINT32 address);
 void MEMCALL i286_memorywrite(UINT32 address, BYTE value);  void MEMCALL i286_memorywrite(UINT32 address, UINT8 value);
 void MEMCALL i286_memorywrite_w(UINT32 address, UINT16 value);  void MEMCALL i286_memorywrite_w(UINT32 address, UINT16 value);
   
 BYTE MEMCALL i286_membyte_read(UINT seg, UINT off);  UINT8 MEMCALL i286_membyte_read(UINT seg, UINT off);
 UINT16 MEMCALL i286_memword_read(UINT seg, UINT off);  UINT16 MEMCALL i286_memword_read(UINT seg, UINT off);
 void MEMCALL i286_membyte_write(UINT seg, UINT off, BYTE value);  void MEMCALL i286_membyte_write(UINT seg, UINT off, UINT8 value);
 void MEMCALL i286_memword_write(UINT seg, UINT off, UINT16 value);  void MEMCALL i286_memword_write(UINT seg, UINT off, UINT16 value);
   
 void MEMCALL i286_memstr_read(UINT seg, UINT off, void *dat, UINT leng);  void MEMCALL i286_memstr_read(UINT seg, UINT off, void *dat, UINT leng);
Line 69  void MEMCALL i286_memstr_write(UINT seg, Line 68  void MEMCALL i286_memstr_write(UINT seg,
 void MEMCALL i286_memx_read(UINT32 address, void *dat, UINT leng);  void MEMCALL i286_memx_read(UINT32 address, void *dat, UINT leng);
 void MEMCALL i286_memx_write(UINT32 address, const void *dat, UINT leng);  void MEMCALL i286_memx_write(UINT32 address, const void *dat, UINT leng);
   
   #ifdef __cplusplus
   }
   #endif
   
   
   // ---- Memory map
   
   #define MEMM_ARCH(t)            i286_memorymap(t)
   #define MEMM_VRAM(o)            i286_vram_dispatch(o)
   
   
 // ---- Physical Space (DMA)  // ---- Physical Space (DMA)
   
Line 80  void MEMCALL i286_memx_write(UINT32 addr Line 89  void MEMCALL i286_memx_write(UINT32 addr
   
 // ---- Logical Space (BIOS)  // ---- Logical Space (BIOS)
   
 #define MEML_READ8(seg, off)                            \  #define MEML_READ8(addr)                                        \
                           i286_memoryread((addr))
   #define MEML_READ16(addr)                                       \
                           i286_memoryread_w((addr))
   #define MEML_WRITE8(addr, dat)                          \
                           i286_memorywrite((addr), (dat))
   #define MEML_WRITE16(addr, dat)                         \
                           i286_memorywrite_w((addr), (dat))
   #define MEML_READS(addr, dat, leng)                     \
                           i286_memx_read((addr), (dat), (leng))
   #define MEML_WRITES(addr, dat, leng)            \
                           i286_memx_write((addr), (dat), (leng))
   
   #define MEMR_READ8(seg, off)                            \
                         i286_membyte_read((seg), (off))                          i286_membyte_read((seg), (off))
 #define MEML_READ16(seg, off)                           \  #define MEMR_READ16(seg, off)                           \
                         i286_memword_read((seg), (off))                          i286_memword_read((seg), (off))
 #define MEML_WRITE8(seg, off, dat)                      \  #define MEMR_WRITE8(seg, off, dat)                      \
                         i286_membyte_write((seg), (off), (dat));                          i286_membyte_write((seg), (off), (dat))
 #define MEML_WRITE16(seg, off, dat)                     \  #define MEMR_WRITE16(seg, off, dat)                     \
                         i286_memword_write((seg), (off), (dat));                          i286_memword_write((seg), (off), (dat))
 #define MEML_READSTR(seg, off, dat, leng)       \  #define MEMR_READS(seg, off, dat, leng)         \
                         i286_memstr_read((seg), (off), (dat), (leng))                          i286_memstr_read((seg), (off), (dat), (leng))
 #define MEML_WRITESTR(seg, off, dat, leng)      \  #define MEMR_WRITES(seg, off, dat, leng)        \
                         i286_memstr_write((seg), (off), (dat), (leng))                          i286_memstr_write((seg), (off), (dat), (leng))
 #define MEML_READ(addr, dat, leng)                      \  
                         i286_memx_read((addr), (dat), (leng))  
 #define MEML_WRITE(addr, dat, leng)                     \  
                         i286_memx_write((addr), (dat), (leng))  
   
 #ifdef __cplusplus  
 }  
 #endif  
   

Removed from v.1.8  
changed lines
  Added in v.1.10


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