- fixes for AmigaOS

This commit is contained in:
cebix 2000-01-30 19:26:05 +00:00
parent 51ae1951fd
commit ee6f4a15b9
2 changed files with 5 additions and 1 deletions

View File

@ -43,6 +43,10 @@ static inline void WriteMacInt32(uint32 addr, uint32 l) {*(uint32 *)addr = htonl
static inline void WriteMacInt16(uint32 addr, uint32 w) {*(uint16 *)addr = htons(w);}
static inline void WriteMacInt8(uint32 addr, uint32 b) {*(uint8 *)addr = b;}
static inline uint8 *Mac2HostAddr(uint32 addr) {return (uint8 *)addr;}
static inline void *Mac_memset(uint32 addr, int c, size_t n) {return memset(Mac2HostAddr(addr), c, n);}
static inline void *Mac2Host_memcpy(void *dest, uint32 src, size_t n) {return memcpy(dest, Mac2HostAddr(src), n);}
static inline void *Host2Mac_memcpy(uint32 dest, const void *src, size_t n) {return memcpy(Mac2HostAddr(dest), src, n);}
static inline void *Mac2Mac_memcpy(uint32 dest, uint32 src, size_t n) {return memcpy(Mac2HostAddr(dest), Mac2HostAddr(src), n);}
/*

View File

@ -1,5 +1,5 @@
/*
* cpu_emulation.h - Definitions for Basilisk II CPU emulation module (UAE 0.8.8 version)
* cpu_emulation.h - Definitions for Basilisk II CPU emulation module (UAE 0.8.10 version)
*
* Basilisk II (C) 1997-1999 Christian Bauer
*