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

Comparing BasiliskII/src/uae_cpu/memory.cpp (file contents):
Revision 1.6 by gbeauche, 2002-09-01T16:32:02Z vs.
Revision 1.7 by gbeauche, 2005-05-13T11:05:56Z

# Line 132 | Line 132 | static void REGPARAM2 ram_bput(uaecptr,
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   {
# Line 252 | Line 252 | static void REGPARAM2 rom_bput(uaecptr,
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   {
# Line 363 | Line 363 | static void REGPARAM2 frame_host_888_lpu
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   {
# Line 565 | Line 565 | void memory_init(void)
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) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines