Missed a couple in the 68000 core.

This commit is contained in:
Aaron Giles 2008-11-22 20:06:27 +00:00
parent 03ca5fb70c
commit 5ca71f2d98

View File

@ -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) */