mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-11-26 10:49:21 +00:00
- added memory initilization for direct addressing (MEMBaseDiff)
This commit is contained in:
parent
83d05988fb
commit
86832e0d1a
@ -32,7 +32,7 @@
|
||||
|
||||
|
||||
// RAM and ROM pointers
|
||||
uint32 RAMBaseMac; // RAM base (Mac address space)
|
||||
uint32 RAMBaseMac = 0; // RAM base (Mac address space) gb-- init is important
|
||||
uint8 *RAMBaseHost; // RAM base (host address space)
|
||||
uint32 RAMSize; // Size of RAM
|
||||
uint32 ROMBaseMac; // ROM base (Mac address space)
|
||||
@ -46,6 +46,10 @@ uint32 MacFrameSize; // Size of frame buffer
|
||||
int MacFrameLayout; // Frame buffer layout
|
||||
#endif
|
||||
|
||||
#if DIRECT_ADDRESSING
|
||||
uintptr MEMBaseDiff; // Global offset between a Mac address and its Host equivalent
|
||||
#endif
|
||||
|
||||
// From newcpu.cpp
|
||||
extern int quit_program;
|
||||
|
||||
@ -60,6 +64,8 @@ bool Init680x0(void)
|
||||
// Mac address space = host address space
|
||||
RAMBaseMac = (uint32)RAMBaseHost;
|
||||
ROMBaseMac = (uint32)ROMBaseHost;
|
||||
#elif DIRECT_ADDRESSING
|
||||
InitMEMBaseDiff(RAMBaseHost, RAMBaseMac);
|
||||
#else
|
||||
// Initialize UAE memory banks
|
||||
RAMBaseMac = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user