void mc68hc11_cpu_device::WRITE8(UINT32 address, UINT8 value) { if(address >= m_reg_position && address < m_reg_position+(m_has_extended_io ? 0x100 : 0x40)) { hc11_regs_w(address, value); return; } else if(address >= m_ram_position && address < m_ram_position+m_internal_ram_size) { m_internal_ram[address-m_ram_position] = value; return; } m_program->write_byte(address, value); }
INLINE void WRITE8(hc11_state *cpustate, UINT32 address, UINT8 value) { if(address >= cpustate->reg_position && address < cpustate->reg_position+(cpustate->has_extended_io ? 0x100 : 0x40)) { hc11_regs_w(cpustate, address, value); return; } else if(address >= cpustate->ram_position && address < cpustate->ram_position+cpustate->internal_ram_size) { cpustate->internal_ram[address-cpustate->ram_position] = value; return; } cpustate->program->write_byte(address, value); }