diff options
Diffstat (limited to 'src/devices/cpu/tms34010/34010ops.h')
-rw-r--r-- | src/devices/cpu/tms34010/34010ops.h | 30 |
1 files changed, 4 insertions, 26 deletions
diff --git a/src/devices/cpu/tms34010/34010ops.h b/src/devices/cpu/tms34010/34010ops.h index ae4aa8f6e06..de90b202be3 100644 --- a/src/devices/cpu/tms34010/34010ops.h +++ b/src/devices/cpu/tms34010/34010ops.h @@ -21,24 +21,6 @@ MEMORY I/O MACROS ***************************************************************************/ -#define TMS34010_RDMEM(A) ((unsigned)m_program.read_byte (A)) -#define TMS34010_RDMEM_WORD(A) ((unsigned)m_program.read_word (A)) -inline uint32_t tms340x0_device::TMS34010_RDMEM_DWORD(offs_t A) -{ - uint32_t result = m_program.read_word(A); - return result | (m_program.read_word(A+16)<<16); -} - -#define TMS34010_WRMEM(A,V) (m_program.write_byte(A,V)) -#define TMS34010_WRMEM_WORD(A,V) (m_program.write_word(A,V)) -inline void tms340x0_device::TMS34010_WRMEM_DWORD(offs_t A, uint32_t V) -{ - m_program.write_word(A,V); - m_program.write_word(A+16,V>>16); -} - - - /* IO registers accessor */ #define IOREG(reg) (m_IOregs[reg]) #define SMART_IOREG(reg) (m_IOregs[m_is_34020 ? (int)REG020_##reg : (int)REG_##reg]) @@ -86,20 +68,16 @@ inline void tms340x0_device::TMS34010_WRMEM_DWORD(offs_t A, uint32_t V) } #define WFIELDMAC_8() \ - if (offset & 0x07) \ + if (true) \ { \ WFIELDMAC(0xff,9); \ - } \ - else \ - TMS34010_WRMEM(offset, data); + } #define RFIELDMAC_8() \ - if (offset & 0x07) \ + if (true) \ { \ RFIELDMAC(0xff,9); \ - } \ - else \ - ret = TMS34010_RDMEM(offset); + } #define WFIELDMAC_32() \ if (offset & 0x0f) \ |