Diff for /np2/i386c/ia32/cpu_mem.c between versions 1.2 and 1.3

version 1.2, 2003/12/11 15:03:16 version 1.3, 2004/01/05 06:50:15
Line 32 Line 32
 #include "memory.h"  #include "memory.h"
   
 // あとで…  // あとで…
 extern DWORD cpumem_addrmask;  // extern DWORD cpumem_addrmask;                // -> CPU_STAT_ADRSMASK
   
 BYTE *cpumem = 0;  BYTE *cpumem = 0;
 DWORD extmem_size = 0;  DWORD extmem_size = 0;
Line 500  cpu_vmemorywrite_d(int idx, DWORD madr,  Line 500  cpu_vmemorywrite_d(int idx, DWORD madr, 
 void MEMCALL  void MEMCALL
 cpu_memorywrite_d(DWORD address, DWORD value)  cpu_memorywrite_d(DWORD address, DWORD value)
 {  {
         DWORD adr = address & cpumem_addrmask;          DWORD adr = address & CPU_STAT_ADRSMASK;
   
         if (adr < LOWMEM - 3) {          if (adr < LOWMEM - 3) {
                 __i286_memorywrite_d(adr, value);                  __i286_memorywrite_d(adr, value);
Line 520  cpu_memorywrite_d(DWORD address, DWORD v Line 520  cpu_memorywrite_d(DWORD address, DWORD v
 void MEMCALL  void MEMCALL
 cpu_memorywrite_w(DWORD address, WORD value)  cpu_memorywrite_w(DWORD address, WORD value)
 {  {
         DWORD adr = address & cpumem_addrmask;          DWORD adr = address & CPU_STAT_ADRSMASK;
   
         if (adr < LOWMEM - 1) {          if (adr < LOWMEM - 1) {
                 __i286_memorywrite_w(adr, value);                  __i286_memorywrite_w(adr, value);
Line 540  cpu_memorywrite_w(DWORD address, WORD va Line 540  cpu_memorywrite_w(DWORD address, WORD va
 void MEMCALL  void MEMCALL
 cpu_memorywrite(DWORD address, BYTE value)  cpu_memorywrite(DWORD address, BYTE value)
 {  {
         DWORD adr = address & cpumem_addrmask;          DWORD adr = address & CPU_STAT_ADRSMASK;
   
         if (adr < LOWMEM) {          if (adr < LOWMEM) {
                 __i286_memorywrite(adr, value);                  __i286_memorywrite(adr, value);
Line 557  cpu_memorywrite(DWORD address, BYTE valu Line 557  cpu_memorywrite(DWORD address, BYTE valu
 DWORD MEMCALL  DWORD MEMCALL
 cpu_memoryread_d(DWORD address)  cpu_memoryread_d(DWORD address)
 {  {
         DWORD adr = address & cpumem_addrmask;          DWORD adr = address & CPU_STAT_ADRSMASK;
         DWORD val;          DWORD val;
   
         if (adr < LOWMEM - 3) {          if (adr < LOWMEM - 3) {
Line 580  cpu_memoryread_d(DWORD address) Line 580  cpu_memoryread_d(DWORD address)
 WORD MEMCALL  WORD MEMCALL
 cpu_memoryread_w(DWORD address)  cpu_memoryread_w(DWORD address)
 {  {
         DWORD adr = address & cpumem_addrmask;          DWORD adr = address & CPU_STAT_ADRSMASK;
         WORD val;          WORD val;
   
         if (adr < LOWMEM - 1) {          if (adr < LOWMEM - 1) {
Line 603  cpu_memoryread_w(DWORD address) Line 603  cpu_memoryread_w(DWORD address)
 BYTE MEMCALL  BYTE MEMCALL
 cpu_memoryread(DWORD address)  cpu_memoryread(DWORD address)
 {  {
         DWORD adr = address & cpumem_addrmask;          DWORD adr = address & CPU_STAT_ADRSMASK;
         BYTE val;          BYTE val;
   
         if (adr < LOWMEM) {          if (adr < LOWMEM) {

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


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