32 |
|
|
33 |
|
|
34 |
|
// RAM and ROM pointers |
35 |
< |
uint32 RAMBaseMac; // RAM base (Mac address space) |
35 |
> |
uint32 RAMBaseMac = 0; // RAM base (Mac address space) gb-- init is important |
36 |
|
uint8 *RAMBaseHost; // RAM base (host address space) |
37 |
|
uint32 RAMSize; // Size of RAM |
38 |
|
uint32 ROMBaseMac; // ROM base (Mac address space) |
46 |
|
int MacFrameLayout; // Frame buffer layout |
47 |
|
#endif |
48 |
|
|
49 |
+ |
#if DIRECT_ADDRESSING |
50 |
+ |
uintptr MEMBaseDiff; // Global offset between a Mac address and its Host equivalent |
51 |
+ |
#endif |
52 |
+ |
|
53 |
|
// From newcpu.cpp |
54 |
|
extern int quit_program; |
55 |
|
|
64 |
|
// Mac address space = host address space |
65 |
|
RAMBaseMac = (uint32)RAMBaseHost; |
66 |
|
ROMBaseMac = (uint32)ROMBaseHost; |
67 |
+ |
#elif DIRECT_ADDRESSING |
68 |
+ |
InitMEMBaseDiff(RAMBaseHost, RAMBaseMac); |
69 |
|
#else |
70 |
|
// Initialize UAE memory banks |
71 |
|
RAMBaseMac = 0; |
101 |
|
|
102 |
|
void Exit680x0(void) |
103 |
|
{ |
104 |
+ |
exit_m68k(); |
105 |
|
} |
106 |
|
|
107 |
|
|