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.31 by gbeauche, 2004-11-15T23:27:43Z vs.
Revision 1.34 by gbeauche, 2006-04-30T17:27:55Z

# Line 1 | Line 1
1   /*
2   *  emul_op.cpp - 68k opcodes for ROM patches
3   *
4 < *  Basilisk II (C) 1997-2004 Christian Bauer
4 > *  Basilisk II (C) 1997-2005 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 236 | Line 236 | void EmulOp(uint16 opcode, M68kRegisters
236  
237                          // Install PutScrap() patch
238                          M68kRegisters r;
239 <                        r.d[0] = 0xa9fe;
240 <                        r.a[0] = PutScrapPatch;
241 <                        Execute68kTrap(0xa647, &r);             // SetToolTrap()
239 >                        if (PutScrapPatch) {
240 >                                r.d[0] = 0xa9fe;
241 >                                r.a[0] = PutScrapPatch;
242 >                                Execute68kTrap(0xa647, &r);     // SetToolTrap()
243 >                        }
244  
245                          // Install GetScrap() patch
246                          if (GetScrapPatch) {
# Line 353 | Line 355 | void EmulOp(uint16 opcode, M68kRegisters
355                          break;
356  
357                  case M68K_EMUL_OP_ETHER_READ_PACKET:
358 <                        EtherReadPacket((uint8 **)&r->a[0], r->a[3], r->d[3], r->d[1]);
358 >                        EtherReadPacket(r->a[0], r->a[3], r->d[3], r->d[1]);
359                          break;
360  
361                  case M68K_EMUL_OP_SOUNDIN_OPEN:         // Sound input driver functions

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines