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 |
|
* |
21 |
|
#ifndef CPU_EMULATION_H |
22 |
|
#define CPU_EMULATION_H |
23 |
|
|
24 |
+ |
#include <string.h> |
25 |
+ |
|
26 |
|
|
27 |
|
/* |
28 |
|
* Memory system |
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 |
|
/* |