summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine/coco.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/machine/coco.cpp')
-rw-r--r--src/mame/machine/coco.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mame/machine/coco.cpp b/src/mame/machine/coco.cpp
index 41661d65247..cfb60864d67 100644
--- a/src/mame/machine/coco.cpp
+++ b/src/mame/machine/coco.cpp
@@ -274,17 +274,17 @@ uint8_t coco_state::floating_bus_read()
uint16_t pc = m_maincpu->pc();
// get the byte; and skip over header bytes
- uint8_t byte = cpu_address_space().read_byte(prev_pc);
+ uint8_t byte = m_maincpu->space().read_byte(prev_pc);
if ((byte == 0x10) || (byte == 0x11))
- byte = cpu_address_space().read_byte(++prev_pc);
+ byte = m_maincpu->space().read_byte(++prev_pc);
// check to see if the opcode specifies the indexed addressing mode, and the secondary byte
// specifies no-offset
bool is_nooffset_indexed = (((byte & 0xF0) == 0x60) || ((byte & 0xF0) == 0xA0) || ((byte & 0xF0) == 0xE0))
- && ((cpu_address_space().read_byte(prev_pc + 1) & 0xBF) == 0x84);
+ && ((m_maincpu->space().read_byte(prev_pc + 1) & 0xBF) == 0x84);
// finally read the byte
- result = cpu_address_space().read_byte(is_nooffset_indexed ? pc : 0xFFFF);
+ result = m_maincpu->space().read_byte(is_nooffset_indexed ? pc : 0xFFFF);
// we're done reading
m_in_floating_bus_read = false;
@@ -620,7 +620,7 @@ void coco_state::recalculate_irq(void)
bool line = irq_get_line();
if (LOG_INTERRUPTS)
logerror("recalculate_irq(): line=%d\n", line ? 1 : 0);
- maincpu().set_input_line(M6809_IRQ_LINE, line ? ASSERT_LINE : CLEAR_LINE);
+ m_maincpu->set_input_line(M6809_IRQ_LINE, line ? ASSERT_LINE : CLEAR_LINE);
}
@@ -646,7 +646,7 @@ void coco_state::recalculate_firq(void)
bool line = firq_get_line();
if (LOG_INTERRUPTS)
logerror("recalculate_firq(): line=%d\n", line ? 1 : 0);
- maincpu().set_input_line(M6809_FIRQ_LINE, line ? ASSERT_LINE : CLEAR_LINE);
+ m_maincpu->set_input_line(M6809_FIRQ_LINE, line ? ASSERT_LINE : CLEAR_LINE);
}
@@ -1109,7 +1109,7 @@ void coco_state::poll_hires_joystick(void)
double value = m_joystick.input(joystick_index, axis) / 255.0;
value *= is_cocomax3 ? 2500.0 : 4160.0;
value += is_cocomax3 ? 400.0 : 592.0;
- attotime duration = maincpu().clocks_to_attotime((uint64_t) value) * 2;
+ attotime duration = m_maincpu->clocks_to_attotime((uint64_t) value) * 2;
m_hiresjoy_transition_timer[axis]->adjust(duration);
}
else if (!m_hiresjoy_ca && newvalue)