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

Comparing BasiliskII/src/uae_cpu/basilisk_glue.cpp (file contents):
Revision 1.5 by cebix, 2000-08-22T12:44:30Z vs.
Revision 1.9 by gbeauche, 2001-03-20T17:35:45Z

# Line 1 | Line 1
1   /*
2   *  basilisk_glue.cpp - Glue UAE CPU to Basilisk II CPU engine interface
3   *
4 < *  Basilisk II (C) 1997-2000 Christian Bauer
4 > *  Basilisk II (C) 1997-2001 Christian Bauer
5   *
6   *  This program is free software; you can redistribute it and/or modify
7   *  it under the terms of the GNU General Public License as published by
# Line 28 | Line 28
28   #include "memory.h"
29   #include "readcpu.h"
30   #include "newcpu.h"
31 #include "compiler.h"
31  
32  
33   // RAM and ROM pointers
34 < uint32 RAMBaseMac;                      // RAM base (Mac address space)
34 > uint32 RAMBaseMac = 0;          // RAM base (Mac address space) gb-- init is important
35   uint8 *RAMBaseHost;                     // RAM base (host address space)
36   uint32 RAMSize;                         // Size of RAM
37   uint32 ROMBaseMac;                      // ROM base (Mac address space)
# Line 46 | Line 45 | uint32 MacFrameSize;           // Size of frame b
45   int MacFrameLayout;                     // Frame buffer layout
46   #endif
47  
48 + #if DIRECT_ADDRESSING
49 + uintptr MEMBaseDiff;            // Global offset between a Mac address and its Host equivalent
50 + #endif
51 +
52   // From newcpu.cpp
53   extern int quit_program;
54  
# Line 60 | Line 63 | bool Init680x0(void)
63          // Mac address space = host address space
64          RAMBaseMac = (uint32)RAMBaseHost;
65          ROMBaseMac = (uint32)ROMBaseHost;
66 + #elif DIRECT_ADDRESSING
67 +        InitMEMBaseDiff(RAMBaseHost, RAMBaseMac);
68   #else
69          // Initialize UAE memory banks
70          RAMBaseMac = 0;
# Line 82 | Line 87 | bool Init680x0(void)
87   #endif
88  
89          init_m68k();
85 #ifdef USE_COMPILER
86        compiler_init();
87 #endif
90          return true;
91   }
92  
# Line 95 | Line 97 | bool Init680x0(void)
97  
98   void Exit680x0(void)
99   {
100 +        exit_m68k();
101   }
102  
103  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines