ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/uae_cpu/memory.h
(Generate patch)

Comparing BasiliskII/src/uae_cpu/memory.h (file contents):
Revision 1.2 by gbeauche, 2000-09-22T17:20:33Z vs.
Revision 1.3 by gbeauche, 2001-06-26T22:35:42Z

# Line 113 | Line 113 | extern void byteput(uaecptr addr, uae_u3
113   #endif /* !DIRECT_ADDRESSING && !REAL_ADDRESSING */
114  
115   #if REAL_ADDRESSING
116 + const uintptr MEMBaseDiff = 0;
117   #define do_get_real_address(a)          ((uae_u8 *)(a))
118   #define do_get_virtual_address(a)       ((uae_u32)(a))
118 #define InitMEMBaseDiff(va, ra)         do { } while (0)
119   #endif /* REAL_ADDRESSING */
120  
121   #if DIRECT_ADDRESSING
122   extern uintptr MEMBaseDiff;
123   #define do_get_real_address(a)          ((uae_u8 *)(a) + MEMBaseDiff)
124   #define do_get_virtual_address(a)       ((uae_u32)(a) - MEMBaseDiff)
125 #define InitMEMBaseDiff(va, ra)         (MEMBaseDiff = (uintptr)(va) - (uintptr)(ra))
125   #endif /* DIRECT_ADDRESSING */
126  
127   #if REAL_ADDRESSING || DIRECT_ADDRESSING

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines