27 |
|
*/ |
28 |
|
|
29 |
|
// Constants |
30 |
– |
const uintptr ROM_BASE = 0x40800000; // Base address of ROM |
30 |
|
const uint32 ROM_SIZE = 0x400000; // Size of ROM file |
31 |
|
const uint32 ROM_AREA_SIZE = 0x500000; // Size of ROM area |
33 |
– |
const uintptr ROM_END = ROM_BASE + ROM_SIZE; // End of ROM |
32 |
|
const uintptr DR_EMULATOR_BASE = 0x68070000; // Address of DR emulator code |
33 |
|
const uint32 DR_EMULATOR_SIZE = 0x10000; // Size of DR emulator code |
34 |
|
const uintptr DR_CACHE_BASE = 0x69000000; // Address of DR cache |
53 |
|
extern uint32 RAMBase; // Base address of Mac RAM |
54 |
|
extern uint32 RAMSize; // Size address of Mac RAM |
55 |
|
extern uint8 *RAMBaseHost; // Base address of Mac RAM (host address space) |
56 |
+ |
|
57 |
+ |
extern uint32 ROMBase; // Base address of Mac ROM |
58 |
|
extern uint8 *ROMBaseHost; // Base address of Mac ROM (host address space) |
59 |
|
|
60 |
|
// Mac memory access functions |