1 |
|
/* |
2 |
|
* emul_op.cpp - 68k opcodes for ROM patches |
3 |
|
* |
4 |
< |
* SheepShaver (C) 1997-2005 Christian Bauer and Marc Hellwig |
4 |
> |
* SheepShaver (C) 1997-2008 Christian Bauer and Marc Hellwig |
5 |
|
* |
6 |
|
* This program is free software; you can redistribute it and/or modify |
7 |
|
* it under the terms of the GNU General Public License as published by |
261 |
|
|
262 |
|
// Patch DebugStr() |
263 |
|
static const uint8 proc_template[] = { |
264 |
< |
M68K_EMUL_OP_DEBUG_STR >> 8, M68K_EMUL_OP_DEBUG_STR, |
264 |
> |
M68K_EMUL_OP_DEBUG_STR >> 8, M68K_EMUL_OP_DEBUG_STR & 0xFF, |
265 |
|
0x4e, 0x74, // rtd #4 |
266 |
|
0x00, 0x04 |
267 |
|
}; |
290 |
|
WriteMacInt32(KernelDataAddr + 0x17c4, DR_CACHE_SIZE); |
291 |
|
WriteMacInt32(KernelDataAddr + 0x1b04, DR_CACHE_BASE); |
292 |
|
WriteMacInt32(KernelDataAddr + 0x1b00, DR_EMULATOR_BASE); |
293 |
< |
memcpy((void *)DR_EMULATOR_BASE, (void *)(ROM_BASE + 0x370000), DR_EMULATOR_SIZE); |
293 |
> |
memcpy((void *)DR_EMULATOR_BASE, (void *)(ROMBase + 0x370000), DR_EMULATOR_SIZE); |
294 |
|
MakeExecutable(0, DR_EMULATOR_BASE, DR_EMULATOR_SIZE); |
295 |
|
} |
296 |
|
break; |