summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/lh5801/lh5801.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/cpu/lh5801/lh5801.cpp')
-rw-r--r--src/devices/cpu/lh5801/lh5801.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/devices/cpu/lh5801/lh5801.cpp b/src/devices/cpu/lh5801/lh5801.cpp
index f650b0887fa..da156333eb0 100644
--- a/src/devices/cpu/lh5801/lh5801.cpp
+++ b/src/devices/cpu/lh5801/lh5801.cpp
@@ -90,9 +90,9 @@ device_memory_interface::space_config_vector lh5801_cpu_device::memory_space_con
void lh5801_cpu_device::device_start()
{
- m_program = &space(AS_PROGRAM);
- m_io = &space(AS_IO);
- m_cache = m_program->cache<0, 0, ENDIANNESS_LITTLE>();
+ space(AS_PROGRAM).cache(m_cache);
+ space(AS_PROGRAM).specific(m_program);
+ space(AS_IO).specific(m_io);
m_in_func.resolve_safe(0);
@@ -172,7 +172,7 @@ void lh5801_cpu_device::state_string_export(const device_state_entry &entry, std
void lh5801_cpu_device::device_reset()
{
- P = (m_program->read_byte(0xfffe) << 8) | m_program->read_byte(0xffff);
+ P = (m_program.read_byte(0xfffe) << 8) | m_program.read_byte(0xffff);
m_idle = 0;
@@ -190,7 +190,7 @@ void lh5801_cpu_device::check_irq()
lh5801_push(m_t);
m_t &= ~IE;
lh5801_push_word(P);
- P = (m_program->read_byte(0xfffc) << 8) | m_program->read_byte(0xfffd);
+ P = (m_program.read_byte(0xfffc) << 8) | m_program.read_byte(0xfffd);
}
else if (m_ir_flipflop[1] && (m_t & IE))
{
@@ -199,7 +199,7 @@ void lh5801_cpu_device::check_irq()
lh5801_push(m_t);
m_t &= ~IE;
lh5801_push_word(P);
- P = (m_program->read_byte(0xfffa) << 8) | m_program->read_byte(0xfffb);
+ P = (m_program.read_byte(0xfffa) << 8) | m_program.read_byte(0xfffb);
}
else if (m_ir_flipflop[2] && (m_t & IE))
{
@@ -208,7 +208,7 @@ void lh5801_cpu_device::check_irq()
lh5801_push(m_t);
m_t &= ~IE;
lh5801_push_word(P);
- P = (m_program->read_byte(0xfff8) << 8) | m_program->read_byte(0xfff9);
+ P = (m_program.read_byte(0xfff8) << 8) | m_program.read_byte(0xfff9);
}
}