232 |
|
WriteMacInt16(XLM_EXEC_RETURN_OPCODE, M68K_EXEC_RETURN); // For Execute68k() (RTS from the executed 68k code will jump here and end 68k mode) |
233 |
|
WriteMacInt32(XLM_ZERO_PAGE, SheepMem::ZeroPage()); // Pointer to read-only page with all bits set to 0 |
234 |
|
#if !EMULATED_PPC |
235 |
< |
WriteMacInt32(XLM_TOC, (uint32)TOC); // TOC pointer of emulator |
235 |
> |
#ifdef SYSTEM_CLOBBERS_R2 |
236 |
> |
WriteMacInt32(XLM_TOC, (uint32)TOC); // TOC pointer of emulator |
237 |
> |
#endif |
238 |
> |
#ifdef SYSTEM_CLOBBERS_R13 |
239 |
> |
WriteMacInt32(XLM_R13, (uint32)R13); // TLS register |
240 |
> |
#endif |
241 |
|
#endif |
242 |
|
WriteMacInt32(XLM_ETHER_INIT, NativeFunction(NATIVE_ETHER_INIT)); // DLPI ethernet driver functions |
243 |
|
WriteMacInt32(XLM_ETHER_TERM, NativeFunction(NATIVE_ETHER_TERM)); |