|
|
1.1 ! root 1: /* ! 2: * UAE - The Un*x Amiga Emulator ! 3: * ! 4: * Memory access functions ! 5: * ! 6: * Copyright 1996 Bernd Schmidt ! 7: */ ! 8: ! 9: static __inline__ ULONG do_get_mem_long(ULONG *a) ! 10: { ! 11: return *a; ! 12: } ! 13: ! 14: static __inline__ UWORD do_get_mem_word(UWORD *a) ! 15: { ! 16: return *a; ! 17: } ! 18: ! 19: static __inline__ UBYTE do_get_mem_byte(UBYTE *a) ! 20: { ! 21: return *a; ! 22: } ! 23: ! 24: static __inline__ void do_put_mem_long(ULONG *a, ULONG v) ! 25: { ! 26: *a = v; ! 27: } ! 28: ! 29: static __inline__ void do_put_mem_word(UWORD *a, UWORD v) ! 30: { ! 31: *a = v; ! 32: } ! 33: ! 34: static __inline__ void do_put_mem_byte(UBYTE *a, UBYTE v) ! 35: { ! 36: *a = v; ! 37: } ! 38: ! 39: #define call_mem_get_func(func, addr) ((*func)(addr)) ! 40: #define call_mem_put_func(func, addr, v) ((*func)(addr, v)) ! 41: ! 42: #undef USE_MAPPED_MEMORY ! 43: #undef CAN_MAP_MEMORY ! 44: #undef NO_INLINE_MEMORY_ACCESS ! 45: #undef MD_HAVE_MEM_1_FUNCS ! 46:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.