132 |
|
static int REGPARAM2 ram_check(uaecptr addr, uae_u32 size) REGPARAM; |
133 |
|
static uae_u8 *REGPARAM2 ram_xlate(uaecptr addr) REGPARAM; |
134 |
|
|
135 |
< |
static uae_u32 RAMBaseDiff; // RAMBaseHost - RAMBaseMac |
135 |
> |
static uintptr RAMBaseDiff; // RAMBaseHost - RAMBaseMac |
136 |
|
|
137 |
|
uae_u32 REGPARAM2 ram_lget(uaecptr addr) |
138 |
|
{ |
252 |
|
static int REGPARAM2 rom_check(uaecptr addr, uae_u32 size) REGPARAM; |
253 |
|
static uae_u8 *REGPARAM2 rom_xlate(uaecptr addr) REGPARAM; |
254 |
|
|
255 |
< |
static uae_u32 ROMBaseDiff; // ROMBaseHost - ROMBaseMac |
255 |
> |
static uintptr ROMBaseDiff; // ROMBaseHost - ROMBaseMac |
256 |
|
|
257 |
|
uae_u32 REGPARAM2 rom_lget(uaecptr addr) |
258 |
|
{ |
363 |
|
static int REGPARAM2 frame_check(uaecptr addr, uae_u32 size) REGPARAM; |
364 |
|
static uae_u8 *REGPARAM2 frame_xlate(uaecptr addr) REGPARAM; |
365 |
|
|
366 |
< |
static uae_u32 FrameBaseDiff; // MacFrameBaseHost - MacFrameBaseMac |
366 |
> |
static uintptr FrameBaseDiff; // MacFrameBaseHost - MacFrameBaseMac |
367 |
|
|
368 |
|
uae_u32 REGPARAM2 frame_direct_lget(uaecptr addr) |
369 |
|
{ |
565 |
|
// Limit RAM size to not overlap ROM |
566 |
|
uint32 ram_size = RAMSize > ROMBaseMac ? ROMBaseMac : RAMSize; |
567 |
|
|
568 |
< |
RAMBaseDiff = (uae_u32)RAMBaseHost - (uae_u32)RAMBaseMac; |
569 |
< |
ROMBaseDiff = (uae_u32)ROMBaseHost - (uae_u32)ROMBaseMac; |
570 |
< |
FrameBaseDiff = (uae_u32)MacFrameBaseHost - (uae_u32)MacFrameBaseMac; |
568 |
> |
RAMBaseDiff = (uintptr)RAMBaseHost - (uintptr)RAMBaseMac; |
569 |
> |
ROMBaseDiff = (uintptr)ROMBaseHost - (uintptr)ROMBaseMac; |
570 |
> |
FrameBaseDiff = (uintptr)MacFrameBaseHost - (uintptr)MacFrameBaseMac; |
571 |
|
|
572 |
|
// Map RAM and ROM |
573 |
|
if (TwentyFourBitAddressing) { |