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

Comparing BasiliskII/src/uae_cpu/cpu_emulation.h (file contents):
Revision 1.1 by cebix, 1999-10-03T14:16:26Z vs.
Revision 1.4 by cebix, 2000-01-30T19:26:05Z

# Line 1 | Line 1
1   /*
2 < *  cpu_emulation.h - Definitions for Basilisk II CPU emulation module (UAE 0.8.8 version)
2 > *  cpu_emulation.h - Definitions for Basilisk II CPU emulation module (UAE 0.8.10 version)
3   *
4   *  Basilisk II (C) 1997-1999 Christian Bauer
5   *
# Line 21 | Line 21
21   #ifndef CPU_EMULATION_H
22   #define CPU_EMULATION_H
23  
24 + #include <string.h>
25 +
26  
27   /*
28   *  Memory system
# Line 73 | Line 75 | static inline void WriteMacInt16(uint32
75   static inline void WriteMacInt8(uint32 addr, uint32 b) {put_byte(addr, b);}
76   static inline uint8 *Mac2HostAddr(uint32 addr) {return get_real_address(addr);}
77   #endif
78 + static inline void *Mac_memset(uint32 addr, int c, size_t n) {return memset(Mac2HostAddr(addr), c, n);}
79 + static inline void *Mac2Host_memcpy(void *dest, uint32 src, size_t n) {return memcpy(dest, Mac2HostAddr(src), n);}
80 + static inline void *Host2Mac_memcpy(uint32 dest, const void *src, size_t n) {return memcpy(Mac2HostAddr(dest), src, n);}
81 + static inline void *Mac2Mac_memcpy(uint32 dest, uint32 src, size_t n) {return memcpy(Mac2HostAddr(dest), Mac2HostAddr(src), n);}
82  
83  
84   /*

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines