diff options
author | 2012-09-11 05:50:50 +0000 | |
---|---|---|
committer | 2012-09-11 05:50:50 +0000 | |
commit | 8669a28810ab8b8c89017a8252626f121abd054a (patch) | |
tree | 6071a3df9af94c1ab559cfab19faa71776d3110d /src/mess/machine/sym1.c | |
parent | e5bbf531533db76bdc34f102eec11494cdfda314 (diff) |
Add safe_pc() and safe_pcbase() methods to device_t.
Convert all cpu_get_pc() to safe_pc() and
cpu_getpreviouspc() to safe_basepc(). Removed the
old macros.
Diffstat (limited to 'src/mess/machine/sym1.c')
-rw-r--r-- | src/mess/machine/sym1.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mess/machine/sym1.c b/src/mess/machine/sym1.c index ec9b3fbaad7..fd1efcc24ca 100644 --- a/src/mess/machine/sym1.c +++ b/src/mess/machine/sym1.c @@ -123,7 +123,7 @@ static READ8_DEVICE_HANDLER(sym1_riot_b_r) static WRITE8_DEVICE_HANDLER(sym1_riot_a_w) { sym1_state *state = device->machine().driver_data<sym1_state>(); - logerror("%x: riot_a_w 0x%02x\n", cpu_get_pc( device->machine().device("maincpu") ), data); + logerror("%x: riot_a_w 0x%02x\n", device->machine().device("maincpu") ->safe_pc( ), data); /* save for later use */ state->m_riot_port_a = data; @@ -133,7 +133,7 @@ static WRITE8_DEVICE_HANDLER(sym1_riot_a_w) static WRITE8_DEVICE_HANDLER(sym1_riot_b_w) { sym1_state *state = device->machine().driver_data<sym1_state>(); - logerror("%x: riot_b_w 0x%02x\n", cpu_get_pc( device->machine().device("maincpu") ), data); + logerror("%x: riot_b_w 0x%02x\n", device->machine().device("maincpu") ->safe_pc( ), data); /* save for later use */ state->m_riot_port_b = data; |