summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/device.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/device.c')
-rw-r--r--src/emu/device.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/emu/device.c b/src/emu/device.c
index ea43ad04269..25687338338 100644
--- a/src/emu/device.c
+++ b/src/emu/device.c
@@ -186,6 +186,23 @@ ioport_port *device_t::ioport(const char *tag) const
//-------------------------------------------------
+// ioport - return a pointer to the I/O port
+// object for a given port name
+//-------------------------------------------------
+
+astring device_t::parameter(const char *tag) const
+{
+ // safety first
+ if (this == NULL)
+ return NULL;
+
+ // build a fully-qualified name and look it up
+ astring fullpath;
+ return machine().parameters().lookup(subtag(fullpath, tag));
+}
+
+
+//-------------------------------------------------
// static_set_clock - set/change the clock on
// a device
//-------------------------------------------------