1403 |
|
*wp++ = htons(M68K_EMUL_OP_MEMORY_DISPATCH); |
1404 |
|
*wp = htons(M68K_RTS); |
1405 |
|
|
1406 |
+ |
#if EMULATED_68K |
1407 |
+ |
// Replace BlockMove() |
1408 |
+ |
wp = (uint16 *)(ROMBaseHost + find_rom_trap(0xa02e)); // BlockMove() |
1409 |
+ |
*wp++ = htons(M68K_EMUL_OP_BLOCK_MOVE); |
1410 |
+ |
*wp++ = htons(0x7000); |
1411 |
+ |
*wp = htons(M68K_RTS); |
1412 |
+ |
#endif |
1413 |
+ |
|
1414 |
|
// Patch VIA interrupt handler |
1415 |
|
wp = (uint16 *)(ROMBaseHost + 0x9bc4); // Level 1 handler |
1416 |
|
*wp++ = htons(0x7002); // moveq #2,d0 (always 60Hz interrupt) |