Diff for /np2/i286a/memory.c between versions 1.8 and 1.9

version 1.8, 2003/12/22 07:41:15 version 1.9, 2005/03/18 09:23:10
Line 5 Line 5
   
 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) {
   
         BYTE    *out;          UINT8   *out;
         UINT32  adrs;          UINT32  adrs;
         UINT    size;          UINT    size;
   
         out = (BYTE *)dat;          out = (UINT8 *)dat;
         adrs = seg << 4;          adrs = seg << 4;
         off = LOW16(off);          off = LOW16(off);
         if ((I286_MEMREADMAX >= 0x10000) &&          if ((I286_MEMREADMAX >= 0x10000) &&
Line 44  void MEMCALL i286_memstr_read(UINT seg,  Line 44  void MEMCALL i286_memstr_read(UINT seg, 
 void MEMCALL i286_memstr_write(UINT seg, UINT off,  void MEMCALL i286_memstr_write(UINT seg, UINT off,
                                                                                                 const void *dat, UINT leng) {                                                                                                  const void *dat, UINT leng) {
   
         BYTE    *out;          UINT8   *out;
         UINT32  adrs;          UINT32  adrs;
         UINT    size;          UINT    size;
   
         out = (BYTE *)dat;          out = (UINT8 *)dat;
         adrs = seg << 4;          adrs = seg << 4;
         off = LOW16(off);          off = LOW16(off);
         if ((I286_MEMWRITEMAX >= 0x10000) &&          if ((I286_MEMWRITEMAX >= 0x10000) &&
Line 86  void MEMCALL i286_memx_read(UINT32 addre Line 86  void MEMCALL i286_memx_read(UINT32 addre
                 CopyMemory(dat, mem + address, leng);                  CopyMemory(dat, mem + address, leng);
         }          }
         else {          else {
                 BYTE *out = (BYTE *)dat;                  UINT8 *out = (UINT8 *)dat;
                 if (address < I286_MEMREADMAX) {                  if (address < I286_MEMREADMAX) {
                         CopyMemory(out, mem + address, I286_MEMREADMAX - address);                          CopyMemory(out, mem + address, I286_MEMREADMAX - address);
                         out += I286_MEMREADMAX - address;                          out += I286_MEMREADMAX - address;
Line 101  void MEMCALL i286_memx_read(UINT32 addre Line 101  void MEMCALL i286_memx_read(UINT32 addre
   
 void MEMCALL i286_memx_write(UINT32 address, const void *dat, UINT leng) {  void MEMCALL i286_memx_write(UINT32 address, const void *dat, UINT leng) {
   
 const BYTE      *out;  const UINT8     *out;
   
         if ((address + leng) < I286_MEMWRITEMAX) {          if ((address + leng) < I286_MEMWRITEMAX) {
                 CopyMemory(mem + address, dat, leng);                  CopyMemory(mem + address, dat, leng);
         }          }
         else {          else {
                 out = (BYTE *)dat;                  out = (UINT8 *)dat;
                 if (address < I286_MEMWRITEMAX) {                  if (address < I286_MEMWRITEMAX) {
                         CopyMemory(mem + address, out, I286_MEMWRITEMAX - address);                          CopyMemory(mem + address, out, I286_MEMWRITEMAX - address);
                         out += I286_MEMWRITEMAX - address;                          out += I286_MEMWRITEMAX - address;

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


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