diff options
Diffstat (limited to 'src/devices/bus/isa/sc499.cpp')
-rw-r--r-- | src/devices/bus/isa/sc499.cpp | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/src/devices/bus/isa/sc499.cpp b/src/devices/bus/isa/sc499.cpp index c7ccabf1802..d22d0e675c2 100644 --- a/src/devices/bus/isa/sc499.cpp +++ b/src/devices/bus/isa/sc499.cpp @@ -399,26 +399,13 @@ void sc499_device::device_reset() cpu_context - return a string describing the current CPU context -------------------------------------------------*/ -const char *sc499_device::cpu_context() +std::string sc499_device::cpu_context() const { - static char statebuf[64]; /* string buffer containing state description */ - - device_t *cpu = machine().firstcpu; osd_ticks_t t = osd_ticks(); int s = (t / osd_ticks_per_second()) % 3600; int ms = (t / (osd_ticks_per_second() / 1000)) % 1000; - /* if we have an executing CPU, output data */ - if (cpu != nullptr) - { - sprintf(statebuf, "%d.%03d %s pc=%08x - %s", s, ms, cpu->tag(), - cpu->safe_pcbase(), tag()); - } - else - { - sprintf(statebuf, "%d.%03d", s, ms); - } - return statebuf; + return string_format("%d.%03d %s", s, ms, machine().describe_context()); } /*------------------------------------------------- |