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

Comparing SheepShaver/src/include/cpu_emulation.h (file contents):
Revision 1.10 by cebix, 2004-01-12T15:37:23Z vs.
Revision 1.11 by gbeauche, 2004-01-24T11:28:05Z

# Line 97 | Line 97 | static inline void *Mac2Mac_memcpy(uint3
97   #define PW(X) ((((X) >> 8) & 0xff) | (((X) & 0xff) << 8))
98   #endif
99  
100 + // PowerPC procedure helper to write a big-endian 32-bit word
101 + #ifdef WORDS_BIGENDIAN
102 + #define PL(X) X
103 + #else
104 + #define PL(X)                                                                                                   \
105 +     ((((X) & 0xff000000) >> 24) | (((X) & 0x00ff0000) >>  8) | \
106 +      (((X) & 0x0000ff00) <<  8) | (((X) & 0x000000ff) << 24))
107 + #endif
108 +
109   struct M68kRegisters;
110   extern void Execute68k(uint32, M68kRegisters *r);                       // Execute 68k subroutine from EMUL_OP routine, must be ended with RTS
111   extern void Execute68kTrap(uint16 trap, M68kRegisters *r);      // Execute 68k A-Trap from EMUL_OP routine

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines