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.3 by gbeauche, 2000-09-22T17:20:01Z vs.
Revision 1.7 by gbeauche, 2005-05-13T11:05:56Z

# Line 12 | Line 12
12   #include "sysdeps.h"
13  
14   #include "cpu_emulation.h"
15 + #include "main.h"
16 + #include "video.h"
17 +
18   #include "m68k.h"
19   #include "memory.h"
20   #include "readcpu.h"
21   #include "newcpu.h"
19 #include "main.h"
20 #include "video.h"
22  
23   #if !REAL_ADDRESSING && !DIRECT_ADDRESSING
24  
# Line 131 | 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 251 | 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 362 | 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 558 | Line 559 | addrbank frame_host_888_bank = {
559  
560   void memory_init(void)
561   {
562 <        char buffer[4096];
562 <        char *nam;
563 <        int i, fd;
564 <
565 <        for(i=0; i<65536; i++)
562 >        for(long i=0; i<65536; i++)
563                  put_mem_bank(i<<16, &dummy_bank);
564  
565          // Limit RAM size to not overlap ROM
569 #if REAL_ADDRESSING
570        uint32 ram_size = RAMSize;
571 #else
566          uint32 ram_size = RAMSize > ROMBaseMac ? ROMBaseMac : RAMSize;
573 #endif
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