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

Comparing BasiliskII/src/AmigaOS/cpu_emulation.h (file contents):
Revision 1.1.1.1 by cebix, 1999-10-03T14:16:25Z vs.
Revision 1.4 by cebix, 2000-07-22T16:55:15Z

# Line 1 | Line 1
1   /*
2   *  cpu_emulation.h - Definitions for Basilisk II CPU emulation module (AmigaOS native 68k version)
3   *
4 < *  Basilisk II (C) 1997-1999 Christian Bauer
4 > *  Basilisk II (C) 1997-2000 Christian Bauer
5   *
6   *  This program is free software; you can redistribute it and/or modify
7   *  it under the terms of the GNU General Public License as published by
# Line 43 | Line 43 | static inline void WriteMacInt32(uint32
43   static inline void WriteMacInt16(uint32 addr, uint32 w) {*(uint16 *)addr = htons(w);}
44   static inline void WriteMacInt8(uint32 addr, uint32 b) {*(uint8 *)addr = b;}
45   static inline uint8 *Mac2HostAddr(uint32 addr) {return (uint8 *)addr;}
46 + static inline void *Mac_memset(uint32 addr, int c, size_t n) {return memset(Mac2HostAddr(addr), c, n);}
47 + static inline void *Mac2Host_memcpy(void *dest, uint32 src, size_t n) {return memcpy(dest, Mac2HostAddr(src), n);}
48 + static inline void *Host2Mac_memcpy(uint32 dest, const void *src, size_t n) {return memcpy(Mac2HostAddr(dest), src, n);}
49 + static inline void *Mac2Mac_memcpy(uint32 dest, uint32 src, size_t n) {return memcpy(Mac2HostAddr(dest), Mac2HostAddr(src), n);}
50  
51  
52   /*

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines