diff --git a/src/emu/cpu/m68000/m68kcpu.c b/src/emu/cpu/m68000/m68kcpu.c index 1dafab101be..dc3fb6f1fdf 100644 --- a/src/emu/cpu/m68000/m68kcpu.c +++ b/src/emu/cpu/m68000/m68kcpu.c @@ -790,7 +790,7 @@ void m68k_set_encrypted_opcode_range(const device_config *device, offs_t start, static UINT16 m68008_read_immediate_16(const address_space *space, offs_t address) { offs_t addr = address; - return (program_decrypted_read_byte(addr) << 8) | (program_decrypted_read_byte(addr + 1)); + return (memory_decrypted_read_byte(space, addr) << 8) | (memory_decrypted_read_byte(space, addr + 1)); } /* interface for 20/22-bit address bus, 8-bit data bus (68008) */ @@ -813,12 +813,12 @@ static const m68k_memory_interface interface_d8 = static UINT16 read_immediate_16(const address_space *space, offs_t address) { m68ki_cpu_core *m68k = space->cpu->token; - return program_decrypted_read_word((address) ^ m68k->memory.opcode_xor); + return memory_decrypted_read_word(space, (address) ^ m68k->memory.opcode_xor); } static UINT16 simple_read_immediate_16(const address_space *space, offs_t address) { - return program_decrypted_read_word(address); + return memory_decrypted_read_word(space, address); } /* interface for 24-bit address bus, 16-bit data bus (68000, 68010) */