ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/emul_op.cpp
(Generate patch)

Comparing BasiliskII/src/emul_op.cpp (file contents):
Revision 1.20 by cebix, 2000-09-25T17:54:00Z vs.
Revision 1.23 by cebix, 2001-02-02T20:52:57Z

# Line 1 | Line 1
1   /*
2   *  emul_op.cpp - 68k opcodes for ROM patches
3   *
4 < *  Basilisk II (C) 1997-2000 Christian Bauer
4 > *  Basilisk II (C) 1997-2001 Christian Bauer
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
# Line 248 | Line 248 | void EmulOp(uint16 opcode, M68kRegisters
248                                  WriteMacInt8(asc_regs + 0x800, 0x0f);   // Set ASC version number
249                                  WriteMacInt32(0xcc0, asc_regs);                 // Set ASCBase
250                          }
251 +                        
252 + #if (REAL_ADDRESSING || DIRECT_ADDRESSING) && defined(USE_SCRATCHMEM_SUBTERFUGE)
253 +                        extern uint8 *ScratchMem;
254 +                        
255 +                        // Set VIA base address to scratch memory area
256 +                        D(bug("Patch VIA base address [0x%x] to ScratchMem\n", ReadMacInt32(0x1d4)));
257 +                        WriteMacInt32(0x1d4, Host2MacAddr(ScratchMem));
258 +                        
259 +                        // Set SCCRd base address to scratch memory area
260 +                        D(bug("Patch SCCRd base address [0x%x] to ScratchMem\n", ReadMacInt32(0x1d8)));
261 +                        WriteMacInt32(0x1d8, Host2MacAddr(ScratchMem));
262 +                        
263 +                        // Set SCCWr base address to scratch memory area
264 +                        D(bug("Patch SCCWr base address [0x%x] to ScratchMem\n", ReadMacInt32(0x1dc)));
265 +                        WriteMacInt32(0x1dc, Host2MacAddr(ScratchMem));
266 + #endif
267                          break;
268                  }
269  
# Line 523 | Line 539 | void EmulOp(uint16 opcode, M68kRegisters
539                          break;
540   #endif
541  
542 <                case M68K_EMUL_OP_BLOCK_MOVE:           // BlockMove() replacement
543 <                        memmove(Mac2HostAddr(r->a[1]), Mac2HostAddr(r->a[0]), r->d[0]);
542 >                case M68K_EMUL_OP_BLOCK_MOVE:           // BlockMove() cache flushing
543 >                        FlushCodeCache(Mac2HostAddr(r->a[0]), r->a[1]);
544                          break;
545  
546                  case M68K_EMUL_OP_DEBUGUTIL:

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines