diff options
author | Aaron Giles <aaron@aarongiles.com> | 2008-11-10 07:42:09 +0000 |
---|---|---|
committer | Aaron Giles <aaron@aarongiles.com> | 2008-11-10 07:42:09 +0000 |
commit | 92f305310513e310dcca7f5b1c3fe7ec2b197775 (patch) | |
tree | 26a4873c3e46ad13db9d1a92de2be5179754d95b /src/emu/machine/ldvp931.c | |
parent | 7c2bd582be58669e84d3bfd2c927401641a7fa80 (diff) |
Major cpuintrf changes:
* added a set of cpu_* calls which accept a CPU device object;
these are now the preferred means of manipulating a CPU
* removed the cpunum_* calls; added an array of cpu[] to the
running_machine object; converted all existing cpunum_* calls
to cpu_* calls, pulling the CPU device object from the new
array in the running_machine
* removed the activecpu_* calls; added an activecpu member to
the running_machine object; converted all existing activecpu_*
calls to cpu_* calls, pulling the active CPU device object
from the running_machine
* changed cpuintrf_push_context() to cpu_push_context(), taking
a CPU object pointer; changed cpuintrf_pop_context() to
cpu_pop_context(); eventually these will go away
* many other similar changes moving toward a model where all CPU
references are done by the CPU object and not by index
Diffstat (limited to 'src/emu/machine/ldvp931.c')
-rw-r--r-- | src/emu/machine/ldvp931.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/emu/machine/ldvp931.c b/src/emu/machine/ldvp931.c index 5ecdcddb114..9be3dc5af63 100644 --- a/src/emu/machine/ldvp931.c +++ b/src/emu/machine/ldvp931.c @@ -475,7 +475,7 @@ static WRITE8_HANDLER( output0_w ) if (LOG_PORTS && (player->out0 ^ data) & 0xff) { - printf("%03X:out0:", activecpu_get_pc()); + printf("%03X:out0:", cpu_get_pc(machine->activecpu)); if ( (data & 0x80)) printf(" ???"); if ( (data & 0x40)) printf(" LED1"); if ( (data & 0x20)) printf(" LED2"); @@ -517,7 +517,7 @@ static WRITE8_HANDLER( output1_w ) if (LOG_PORTS && (player->out1 ^ data) & 0x08) { - mame_printf_debug("%03X:out1:", activecpu_get_pc()); + mame_printf_debug("%03X:out1:", cpu_get_pc(machine->activecpu)); if (!(data & 0x08)) mame_printf_debug(" SMS"); mame_printf_debug("\n"); player->out1 = data; @@ -678,7 +678,7 @@ static WRITE8_HANDLER( port1_w ) if (LOG_PORTS && (player->port1 ^ data) & 0x1f) { - printf("%03X:port1:", activecpu_get_pc()); + printf("%03X:port1:", cpu_get_pc(machine->activecpu)); if (!(data & 0x10)) printf(" SPEED"); if (!(data & 0x08)) printf(" TIMENABLE"); if (!(data & 0x04)) printf(" REV"); |