diff options
author | 2010-08-19 16:10:19 +0000 | |
---|---|---|
committer | 2010-08-19 16:10:19 +0000 | |
commit | 621a2faa2a384ccea46ee3630c57961b92070ed7 (patch) | |
tree | 960fd0c5fbc1b8fcc3b07ff2cc538048eaa7b9af /src/emu/cpu/h83002/h8_8.c | |
parent | 9bbc2e2f00ac611c79969db389043cd035e4215d (diff) |
Remove final set of legacy inlines from memory.h. Mostly affects CPU
cores, which all now cache a copy of space->direct() and use it for
direct accesses.
Diffstat (limited to 'src/emu/cpu/h83002/h8_8.c')
-rw-r--r-- | src/emu/cpu/h83002/h8_8.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/emu/cpu/h83002/h8_8.c b/src/emu/cpu/h83002/h8_8.c index 204721e8e64..9af6bc1150f 100644 --- a/src/emu/cpu/h83002/h8_8.c +++ b/src/emu/cpu/h83002/h8_8.c @@ -42,8 +42,8 @@ INLINE UINT16 h8_mem_read16(h83xx_state *h8, offs_t address) INLINE UINT16 h8_readop16(h83xx_state *h8, offs_t address) { - UINT16 result = memory_decrypted_read_byte(h8->program, address)<<8; - return result | memory_decrypted_read_byte(h8->program, address+1); + UINT16 result = h8->direct->read_decrypted_byte(address)<<8; + return result | h8->direct->read_decrypted_byte(address+1); } INLINE void h8_mem_write16(h83xx_state *h8, offs_t address, UINT16 data) @@ -238,6 +238,7 @@ static CPU_INIT(h8bit) h8->mode_8bit = 1; h8->program = device->space(AS_PROGRAM); + h8->direct = &h8->program->direct(); h8->io = device->space(AS_IO); h8->timer[0] = timer_alloc(h8->device->machine, h8_timer_0_cb, h8); |