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.33 by gbeauche, 2005-03-19T17:43:03Z vs.
Revision 1.34 by gbeauche, 2006-04-30T17:27:55Z

# 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) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines