--- SheepShaver/src/include/cpu_emulation.h 2003/09/28 21:20:36 1.3 +++ SheepShaver/src/include/cpu_emulation.h 2003/09/29 15:46:08 1.4 @@ -29,12 +29,34 @@ // Constants const uint32 ROM_BASE = 0x40800000; // Base address of ROM const uint32 ROM_SIZE = 0x00400000; // Size of ROM file +const uint32 ROM_AREA_SIZE = 0x500000; // Size of ROM area +const uint32 ROM_END = ROM_BASE + ROM_SIZE; // End of ROM const uint32 DR_CACHE_BASE = 0x69000000; // Address of DR cache const uint32 DR_CACHE_SIZE = 0x80000; // Size of DR Cache +const uint32 SHEEP_BASE = 0x60000000; // Address of SheepShaver data +const uint32 SHEEP_SIZE = 0x40000; // Size of SheepShaver data + +const uint32 KERNEL_DATA_BASE = 0x68ffe000; // Address of Kernel Data +const uint32 KERNEL_DATA2_BASE = 0x5fffe000;// Alternate address of Kernel Data +const uint32 KERNEL_AREA_SIZE = 0x2000; // Size of Kernel Data area + +// MacOS 68k Emulator Data +struct EmulatorData { + uint32 v[0x400]; +}; + +// MacOS Kernel Data +struct KernelData { + uint32 v[0x400]; + EmulatorData ed; +}; // RAM and ROM pointers (allocated and set by main_*.cpp) extern uint32 RAMBase; // Base address of Mac RAM extern uint32 RAMSize; // Size address of Mac RAM +extern uint32 SheepStack1Base; // SheepShaver first alternate stack base +extern uint32 SheepStack2Base; // SheepShaver second alternate stack base +extern uint32 SheepThunksBase; // SheepShaver thunks base // Mac memory access functions static inline uint32 ReadMacInt8(uint32 addr) {return *(uint8 *)addr;}