summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/segald.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/segald.c')
-rw-r--r--src/mame/drivers/segald.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/mame/drivers/segald.c b/src/mame/drivers/segald.c
index c0233f80e83..9820b7ef6ee 100644
--- a/src/mame/drivers/segald.c
+++ b/src/mame/drivers/segald.c
@@ -125,7 +125,7 @@ READ8_MEMBER(segald_state::astron_DISC_read)
if (m_nmi_enable)
m_ldv1000_input_latch = m_laserdisc->status_r();
- logerror("DISC read (0x%04x) @ 0x%04x [0x%x]\n", m_ldv1000_input_latch, offset, cpu_get_pc(&space.device()));
+ logerror("DISC read (0x%04x) @ 0x%04x [0x%x]\n", m_ldv1000_input_latch, offset, space.device().safe_pc());
return m_ldv1000_input_latch;
}
@@ -133,21 +133,21 @@ READ8_MEMBER(segald_state::astron_DISC_read)
READ8_MEMBER(segald_state::astron_OUT_read)
{
- logerror("OUT read (0x%04x) @ 0x%04x [0x%x]\n", m_out_ram[offset], offset, cpu_get_pc(&space.device()));
+ logerror("OUT read (0x%04x) @ 0x%04x [0x%x]\n", m_out_ram[offset], offset, space.device().safe_pc());
return m_out_ram[offset];
}
READ8_MEMBER(segald_state::astron_OBJ_read)
{
- logerror("OBJ read (0x%04x) @ 0x%04x [0x%x]\n", m_obj_ram[offset], offset, cpu_get_pc(&space.device()));
+ logerror("OBJ read (0x%04x) @ 0x%04x [0x%x]\n", m_obj_ram[offset], offset, space.device().safe_pc());
return m_obj_ram[offset];
}
READ8_MEMBER(segald_state::astron_COLOR_read)
{
- logerror("COLOR read (0x%04x) @ 0x%04x [0x%x]\n", m_color_ram[offset], offset, cpu_get_pc(&space.device()));
+ logerror("COLOR read (0x%04x) @ 0x%04x [0x%x]\n", m_color_ram[offset], offset, space.device().safe_pc());
return m_color_ram[offset];
}
@@ -156,7 +156,7 @@ READ8_MEMBER(segald_state::astron_COLOR_read)
WRITE8_MEMBER(segald_state::astron_DISC_write)
{
- logerror("DISC write : 0x%04x @ 0x%04x [0x%x]\n", data, offset, cpu_get_pc(&space.device()));
+ logerror("DISC write : 0x%04x @ 0x%04x [0x%x]\n", data, offset, space.device().safe_pc());
m_ldv1000_output_latch = data;
@@ -167,7 +167,7 @@ WRITE8_MEMBER(segald_state::astron_DISC_write)
WRITE8_MEMBER(segald_state::astron_OUT_write)
{
- logerror("OUT write : 0x%04x @ 0x%04x [0x%x]\n", data, offset, cpu_get_pc(&space.device()));
+ logerror("OUT write : 0x%04x @ 0x%04x [0x%x]\n", data, offset, space.device().safe_pc());
switch(offset)
{
@@ -205,7 +205,7 @@ WRITE8_MEMBER(segald_state::astron_OBJ_write)
{
m_obj_ram[offset] = data;
- logerror("OBJ write : 0x%04x @ 0x%04x [0x%x]\n", data, offset, cpu_get_pc(&space.device()));
+ logerror("OBJ write : 0x%04x @ 0x%04x [0x%x]\n", data, offset, space.device().safe_pc());
}
WRITE8_MEMBER(segald_state::astron_COLOR_write)
@@ -228,14 +228,14 @@ WRITE8_MEMBER(segald_state::astron_COLOR_write)
a = (highBits & 0x80) ? 0 : 255;
palette_set_color(machine(), palIndex, MAKE_ARGB(a, r, g, b));
- logerror("COLOR write : 0x%04x @ 0x%04x [0x%x]\n", data, offset, cpu_get_pc(&space.device()));
+ logerror("COLOR write : 0x%04x @ 0x%04x [0x%x]\n", data, offset, space.device().safe_pc());
}
WRITE8_MEMBER(segald_state::astron_FIX_write)
{
m_fix_ram[offset] = data;
- /* logerror("FIX write : 0x%04x @ 0x%04x [0x%x]\n", data, offset, cpu_get_pc(&space.device())); */
+ /* logerror("FIX write : 0x%04x @ 0x%04x [0x%x]\n", data, offset, space.device().safe_pc()); */
}
WRITE8_MEMBER(segald_state::astron_io_bankswitch_w)