diff options
Diffstat (limited to 'src/mame/etc/template_device.cpp')
-rw-r--r-- | src/mame/etc/template_device.cpp | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/src/mame/etc/template_device.cpp b/src/mame/etc/template_device.cpp new file mode 100644 index 00000000000..8bc48c8e5de --- /dev/null +++ b/src/mame/etc/template_device.cpp @@ -0,0 +1,75 @@ +// license:BSD-3-Clause +// copyright-holders:Angelo Salese +/*************************************************************************** + +Template for skeleton device + +***************************************************************************/ + +#include "emu.h" +#include "machine/xxx.h" + + + +//************************************************************************** +// GLOBAL VARIABLES +//************************************************************************** + +// device type definition +const device_type XXX = &device_creator<xxx_device>; + + +//************************************************************************** +// LIVE DEVICE +//************************************************************************** + +//------------------------------------------------- +// xxx_device - constructor +//------------------------------------------------- + +xxx_device::xxx_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) + : device_t(mconfig, XXX, "xxx_longname", tag, owner, clock, "xxx", __FILE__) +{ +} + + +//------------------------------------------------- +// device_validity_check - perform validity checks +// on this device +//------------------------------------------------- + +void xxx_device::device_validity_check(validity_checker &valid) const +{ +} + + +//------------------------------------------------- +// device_start - device-specific startup +//------------------------------------------------- + +void xxx_device::device_start() +{ +} + + +//------------------------------------------------- +// device_reset - device-specific reset +//------------------------------------------------- + +void xxx_device::device_reset() +{ +} + + +//************************************************************************** +// READ/WRITE HANDLERS +//************************************************************************** + +READ8_MEMBER( xxx_device::read ) +{ + return 0; +} + +WRITE8_MEMBER( xxx_device::write ) +{ +} |