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

Comparing SheepShaver/src/emul_op.cpp (file contents):
Revision 1.15 by gbeauche, 2004-11-13T14:09:15Z vs.
Revision 1.18 by gbeauche, 2005-01-30T21:48:19Z

# Line 1 | Line 1
1   /*
2   *  emul_op.cpp - 68k opcodes for ROM patches
3   *
4 < *  SheepShaver (C) 1997-2004 Christian Bauer and Marc Hellwig
4 > *  SheepShaver (C) 1997-2005 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
# Line 259 | Line 259 | void EmulOp(M68kRegisters *r, uint32 pc,
259                          InstallDrivers();
260  
261                          // Patch MakeExecutable()
262 <                        MakeExecutableTvec = (uint32)FindLibSymbol("\023PrivateInterfaceLib", "\016MakeExecutable");
262 >                        MakeExecutableTvec = FindLibSymbol("\023PrivateInterfaceLib", "\016MakeExecutable");
263                          D(bug("MakeExecutable TVECT at %08x\n", MakeExecutableTvec));
264                          WriteMacInt32(MakeExecutableTvec, NativeFunction(NATIVE_MAKE_EXECUTABLE));
265   #if !EMULATED_PPC
# Line 267 | Line 267 | void EmulOp(M68kRegisters *r, uint32 pc,
267   #endif
268  
269                          // Patch DebugStr()
270 <                        static const uint16 proc[] = {
271 <                                PW(M68K_EMUL_OP_DEBUG_STR),
272 <                                PW(0x4e74),                     // rtd  #4
273 <                                PW(0x0004)
270 >                        static const uint8 proc_template[] = {
271 >                                M68K_EMUL_OP_DEBUG_STR >> 8, M68K_EMUL_OP_DEBUG_STR,
272 >                                0x4e, 0x74,                     // rtd  #4
273 >                                0x00, 0x04
274                          };
275 <                        WriteMacInt32(0x1dfc, Host2MacAddr((uint8 *)proc));
275 >                        BUILD_SHEEPSHAVER_PROCEDURE(proc);
276 >                        WriteMacInt32(0x1dfc, proc);
277                          break;
278                  }
279  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines