diff options
author | 2008-11-17 18:33:10 +0000 | |
---|---|---|
committer | 2008-11-17 18:33:10 +0000 | |
commit | e7c418ef0fccb0c316f8afef4b87e347141a474d (patch) | |
tree | 3c10861632813ef91fc9bb435fda216053b489d8 /src/emu/cpu/tms32025 | |
parent | cd6f509841d892d4d195aad6c2a7b05b45f55f78 (diff) |
Generalized the concept of opbase access into "direct" access.
Removed opbase globals to the address_space structure.
Cleaned up names of pointers (decrypted and raw versus rom and ram).
Added inline functions to read/write data via any address space.
Added macros for existing functions to point them to the new functions.
Other related cleanups.
Diffstat (limited to 'src/emu/cpu/tms32025')
-rw-r--r-- | src/emu/cpu/tms32025/32025dsm.c | 8 | ||||
-rw-r--r-- | src/emu/cpu/tms32025/tms32025.c | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/emu/cpu/tms32025/32025dsm.c b/src/emu/cpu/tms32025/32025dsm.c index 8d5aee11805..d5c406b5a93 100644 --- a/src/emu/cpu/tms32025/32025dsm.c +++ b/src/emu/cpu/tms32025/32025dsm.c @@ -36,10 +36,10 @@ #include "tms32025.h" #include "debugger.h" extern UINT16 *tms32025_pgmmap[0x200]; -//#define READOP16(A) (cpu_readop16((A) | (TMS32025_PGM_OFFSET << 1))) -//#define READARG16(A) (cpu_readop_arg16((A) | (TMS32025_PGM_OFFSET << 1))) -#define READOP16(A) ((tms32025_pgmmap[(A) >> 7]) ? (tms32025_pgmmap[(A) >> 7][(A) & 0x7f]) : cpu_readop16((A)<<1)) -#define READARG16(A) ((tms32025_pgmmap[(A) >> 7]) ? (tms32025_pgmmap[(A) >> 7][(A) & 0x7f]) : cpu_readop16((A)<<1)) +//#define READOP16(A) (program_decrypted_read_word((A) | (TMS32025_PGM_OFFSET << 1))) +//#define READARG16(A) (program_raw_read_word((A) | (TMS32025_PGM_OFFSET << 1))) +#define READOP16(A) ((tms32025_pgmmap[(A) >> 7]) ? (tms32025_pgmmap[(A) >> 7][(A) & 0x7f]) : program_decrypted_read_word((A)<<1)) +#define READARG16(A) ((tms32025_pgmmap[(A) >> 7]) ? (tms32025_pgmmap[(A) >> 7][(A) & 0x7f]) : program_decrypted_read_word((A)<<1)) diff --git a/src/emu/cpu/tms32025/tms32025.c b/src/emu/cpu/tms32025/tms32025.c index 22cac92ed95..9f446bebc7e 100644 --- a/src/emu/cpu/tms32025/tms32025.c +++ b/src/emu/cpu/tms32025/tms32025.c @@ -176,8 +176,8 @@ INLINE void M_WRTRAM(offs_t addr, UINT16 data) #define S_IN(A) (io_read_word_16be((A)<<1)) #define S_OUT(A,V) (io_write_word_16be(((A)<<1),(V))) -#define M_RDOP(A) ((tms32025_pgmmap[(A) >> 7]) ? (tms32025_pgmmap[(A) >> 7][(A) & 0x7f]) : cpu_readop16((A)<<1)) -#define M_RDOP_ARG(A) ((tms32025_pgmmap[(A) >> 7]) ? (tms32025_pgmmap[(A) >> 7][(A) & 0x7f]) : cpu_readop16((A)<<1)) +#define M_RDOP(A) ((tms32025_pgmmap[(A) >> 7]) ? (tms32025_pgmmap[(A) >> 7][(A) & 0x7f]) : program_decrypted_read_word((A)<<1)) +#define M_RDOP_ARG(A) ((tms32025_pgmmap[(A) >> 7]) ? (tms32025_pgmmap[(A) >> 7][(A) & 0x7f]) : program_decrypted_read_word((A)<<1)) |