summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/isa/sc499.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/isa/sc499.cpp')
-rw-r--r--src/devices/bus/isa/sc499.cpp25
1 files changed, 23 insertions, 2 deletions
diff --git a/src/devices/bus/isa/sc499.cpp b/src/devices/bus/isa/sc499.cpp
index 4effacb3394..3d94caa2b2c 100644
--- a/src/devices/bus/isa/sc499.cpp
+++ b/src/devices/bus/isa/sc499.cpp
@@ -409,16 +409,37 @@ const char *sc499_device::cpu_context()
{
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();
int ms = (t % osd_ticks_per_second()) / 1000;
- sprintf(statebuf, "%d.%03d%s:", s, ms, tag());
-
+ /* 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;
}
/*-------------------------------------------------
+ logerror - log an error message (w/o device tags)
+ -------------------------------------------------*/
+
+void sc499_device::logerror(const char *format, ...) const
+{
+ va_list arg;
+ va_start(arg, format);
+ machine().vlogerror(format, arg);
+ va_end(arg);
+}
+
+/*-------------------------------------------------
tape_status_clear - clear bits in tape status
-------------------------------------------------*/