MT 05732 (nw)

This commit is contained in:
AJR 2018-12-09 00:44:44 -05:00
parent 4b3ff6417e
commit 2cad6e0f60
2 changed files with 7 additions and 4 deletions

View File

@ -184,17 +184,17 @@ void mcs48_cpu_device::program_12bit(address_map &map)
void mcs48_cpu_device::data_6bit(address_map &map)
{
map(0x00, 0x3f).ram();
map(0x00, 0x3f).ram().share("data");
}
void mcs48_cpu_device::data_7bit(address_map &map)
{
map(0x00, 0x7f).ram();
map(0x00, 0x7f).ram().share("data");
}
void mcs48_cpu_device::data_8bit(address_map &map)
{
map(0x00, 0xff).ram();
map(0x00, 0xff).ram().share("data");
}
@ -213,6 +213,7 @@ mcs48_cpu_device::mcs48_cpu_device(const machine_config &mconfig, device_type ty
, m_t0_clk_func()
, m_prog_out_cb(*this)
, m_psw(0)
, m_dataptr(*this, "data")
, m_feature_mask(feature_mask)
, m_int_rom_size(rom_size)
, m_opcode_table(opcode_table)
@ -385,7 +386,7 @@ uint8_t mcs48_cpu_device::argument_fetch()
void mcs48_cpu_device::update_regptr()
{
m_regptr = (uint8_t *)m_data->get_write_ptr((m_psw & B_FLAG) ? 24 : 0);
m_regptr = &m_dataptr[(m_psw & B_FLAG) ? 24 : 0];
}

View File

@ -224,6 +224,8 @@ protected:
address_space *m_data;
address_space *m_io;
required_shared_ptr<uint8_t> m_dataptr;
uint8_t m_feature_mask; /* processor feature flags */
uint16_t m_int_rom_size; /* internal rom size */