From 8669a28810ab8b8c89017a8252626f121abd054a Mon Sep 17 00:00:00 2001 From: Aaron Giles Date: Tue, 11 Sep 2012 05:50:50 +0000 Subject: 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. --- src/mess/machine/dec_lk201.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/mess/machine/dec_lk201.c') diff --git a/src/mess/machine/dec_lk201.c b/src/mess/machine/dec_lk201.c index df1428498c0..f4197e2d108 100644 --- a/src/mess/machine/dec_lk201.c +++ b/src/mess/machine/dec_lk201.c @@ -107,7 +107,7 @@ READ8_MEMBER( lk201_device::ddr_r ) WRITE8_MEMBER( lk201_device::ddr_w ) { -// printf("%02x to PORT %c DDR (PC=%x)\n", data, 'A' + offset, cpu_get_pc(m_maincpu)); +// printf("%02x to PORT %c DDR (PC=%x)\n", data, 'A' + offset, m_maincpu->safe_pc()); send_port(space, offset, ports[offset] & data); @@ -135,7 +135,7 @@ READ8_MEMBER( lk201_device::ports_r ) // add in ddr-masked version of port writes incoming |= (ports[offset] & ddrs[offset]); -// printf("PORT %c read = %02x (DDR = %02x latch = %02x) (PC=%x)\n", 'A' + offset, ports[offset], ddrs[offset], ports[offset], cpu_get_pc(m_maincpu)); +// printf("PORT %c read = %02x (DDR = %02x latch = %02x) (PC=%x)\n", 'A' + offset, ports[offset], ddrs[offset], ports[offset], m_maincpu->safe_pc()); return incoming; } @@ -149,7 +149,7 @@ WRITE8_MEMBER( lk201_device::ports_w ) void lk201_device::send_port(address_space &space, UINT8 offset, UINT8 data) { -// printf("PORT %c write %02x (DDR = %02x) (PC=%x)\n", 'A' + offset, data, ddrs[offset], cpu_get_pc(m_maincpu)); +// printf("PORT %c write %02x (DDR = %02x) (PC=%x)\n", 'A' + offset, data, ddrs[offset], m_maincpu->safe_pc()); switch (offset) { @@ -187,7 +187,7 @@ READ8_MEMBER( lk201_device::sci_r ) break; } -// printf("SCI read @ %x = %02x (PC=%x)\n", offset, incoming, cpu_get_pc(m_maincpu)); +// printf("SCI read @ %x = %02x (PC=%x)\n", offset, incoming, m_maincpu->safe_pc()); return incoming; } @@ -212,7 +212,7 @@ WRITE8_MEMBER( lk201_device::sci_w ) break; } -// printf("SCI %02x to %x (PC=%x)\n", data, offset, cpu_get_pc(m_maincpu)); +// printf("SCI %02x to %x (PC=%x)\n", data, offset, m_maincpu->safe_pc()); } READ8_MEMBER( lk201_device::spi_r ) @@ -232,7 +232,7 @@ READ8_MEMBER( lk201_device::spi_r ) break; } -// printf("SPI read @ %x = %02x (PC=%x)\n", offset, incoming, cpu_get_pc(m_maincpu)); +// printf("SPI read @ %x = %02x (PC=%x)\n", offset, incoming, m_maincpu->safe_pc()); return incoming; } @@ -251,7 +251,7 @@ WRITE8_MEMBER( lk201_device::spi_w ) break; } -// printf("SPI %02x to %x (PC=%x)\n", data, offset, cpu_get_pc(m_maincpu)); +// printf("SPI %02x to %x (PC=%x)\n", data, offset, m_maincpu->safe_pc()); } /* -- cgit v1.2.3