1 |
|
/* |
2 |
|
* cpu_emulation.h - Definitions for Basilisk II CPU emulation module (Apple PowerMac ROM 680x0 emulator version (BeOS/PPC)) |
3 |
|
* |
4 |
< |
* Basilisk II (C) 1997-1999 Christian Bauer |
4 |
> |
* Basilisk II (C) 1997-2000 Christian Bauer |
5 |
|
*/ |
6 |
|
|
7 |
|
#ifndef CPU_EMULATION_H |
29 |
|
static inline void WriteMacInt16(uint32 addr, uint32 w) {*(uint16 *)addr = htons(w);} |
30 |
|
static inline void WriteMacInt8(uint32 addr, uint32 b) {*(uint8 *)addr = b;} |
31 |
|
static inline uint8 *Mac2HostAddr(uint32 addr) {return (uint8 *)addr;} |
32 |
+ |
static inline uint32 Host2MacAddr(uint8 *addr) {return (uint32)addr;} |
33 |
|
|
34 |
|
|
35 |
|
/* |