|
|
1.1 root 1: /*
2: * UAE - The Un*x Amiga Emulator
3: *
4: * Memory access functions
5: *
6: * Copyright 1996 Bernd Schmidt
7: */
8:
1.1.1.2 ! root 9: static __inline__ uae_u32 do_get_mem_long(uae_u32 *a)
1.1 root 10: {
1.1.1.2 ! root 11: return *a;
1.1 root 12: }
13:
1.1.1.2 ! root 14: static __inline__ uae_u16 do_get_mem_word(uae_u16 *a)
1.1 root 15: {
1.1.1.2 ! root 16: return *a;
1.1 root 17: }
18:
1.1.1.2 ! root 19: static __inline__ uae_u8 do_get_mem_byte(uae_u8 *a)
1.1 root 20: {
21: return *a;
22: }
23:
1.1.1.2 ! root 24: static __inline__ void do_put_mem_long(uae_u32 *a, uae_u32 v)
1.1 root 25: {
1.1.1.2 ! root 26: *a = v;
1.1 root 27: }
28:
1.1.1.2 ! root 29: static __inline__ void do_put_mem_word(uae_u16 *a, uae_u16 v)
1.1 root 30: {
1.1.1.2 ! root 31: *a = v;
1.1 root 32: }
33:
1.1.1.2 ! root 34: static __inline__ void do_put_mem_byte(uae_u8 *a, uae_u8 v)
1.1 root 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 NO_INLINE_MEMORY_ACCESS
43: #undef MD_HAVE_MEM_1_FUNCS
44:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.