summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/cpu/adsp2100
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2010-08-19 08:27:05 +0000
committer Aaron Giles <aaron@aarongiles.com>2010-08-19 08:27:05 +0000
commit0edda6dda2011891345f33f0f77c256b059abebf (patch)
tree90ba2b62ff911ff1bc737a56025e58155e9ce4dc /src/emu/cpu/adsp2100
parent3598b772bc80b2efb6396c65996462b38eedc593 (diff)
Remove memory_read/write_byte/word/dword/qword* variants. Again, this is mostly
bulk search & replace: S: memory_read_([bytewordq]+)_[0-9lbe_maskd]+( *)\(( *)([^,]+)( *),( *) R: \4->read_\1\2\(\3 S: memory_read_([bytewordq]+)( *)\(( *)([^,]+)( *),( *) R: \4->read_\1\2\(\3 S: memory_write_([bytewordq]+)_[0-9lbe_maskd]+( *)\(( *)([^,]+)( *),( *) R: \4->write_\1\2\(\3 S: memory_write_([bytewordq]+)( *)\(( *)([^,]+)( *),( *) R: \4->write_\1\2\(\3 Gets 99% of the cases.
Diffstat (limited to 'src/emu/cpu/adsp2100')
-rw-r--r--src/emu/cpu/adsp2100/adsp2100.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/emu/cpu/adsp2100/adsp2100.c b/src/emu/cpu/adsp2100/adsp2100.c
index d147b719fa8..369ffad523f 100644
--- a/src/emu/cpu/adsp2100/adsp2100.c
+++ b/src/emu/cpu/adsp2100/adsp2100.c
@@ -318,32 +318,32 @@ INLINE adsp2100_state *get_safe_token(running_device *device)
INLINE UINT16 RWORD_DATA(adsp2100_state *adsp, UINT32 addr)
{
- return memory_read_word_16le(adsp->data, addr << 1);
+ return adsp->data->read_word(addr << 1);
}
INLINE void WWORD_DATA(adsp2100_state *adsp, UINT32 addr, UINT16 data)
{
- memory_write_word_16le(adsp->data, addr << 1, data);
+ adsp->data->write_word(addr << 1, data);
}
INLINE UINT16 RWORD_IO(adsp2100_state *adsp, UINT32 addr)
{
- return memory_read_word_16le(adsp->io, addr << 1);
+ return adsp->io->read_word(addr << 1);
}
INLINE void WWORD_IO(adsp2100_state *adsp, UINT32 addr, UINT16 data)
{
- memory_write_word_16le(adsp->io, addr << 1, data);
+ adsp->io->write_word(addr << 1, data);
}
INLINE UINT32 RWORD_PGM(adsp2100_state *adsp, UINT32 addr)
{
- return memory_read_dword_32le(adsp->program, addr << 2);
+ return adsp->program->read_dword(addr << 2);
}
INLINE void WWORD_PGM(adsp2100_state *adsp, UINT32 addr, UINT32 data)
{
- memory_write_dword_32le(adsp->program, addr << 2, data & 0xffffff);
+ adsp->program->write_dword(addr << 2, data & 0xffffff);
}
#define ROPCODE(a) memory_decrypted_read_dword((a)->program, (a)->pc << 2)