diff options
Diffstat (limited to 'src/emu/machine/jvsdev.c')
-rw-r--r-- | src/emu/machine/jvsdev.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/emu/machine/jvsdev.c b/src/emu/machine/jvsdev.c index 204d874ca9a..3357ce90f55 100644 --- a/src/emu/machine/jvsdev.c +++ b/src/emu/machine/jvsdev.c @@ -244,7 +244,7 @@ bool jvs_device::swoutputs(UINT8 id, UINT8 val) return false; } -void jvs_device::handle_output(const char *tag, UINT8 id, UINT8 val) +void jvs_device::handle_output(ioport_port *port, UINT8 id, UINT8 val) { UINT32 m = 1 << id; switch(val) { @@ -253,5 +253,8 @@ void jvs_device::handle_output(const char *tag, UINT8 id, UINT8 val) case 2: jvs_outputs ^= m; break; } - machine().root_device().ioport(tag)->write_safe(jvs_outputs, m); + if (port) + { + port->write(jvs_outputs, m); + } } |