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 |