summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/pet/diag.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/pet/diag.c')
-rw-r--r--src/devices/bus/pet/diag.c44
1 files changed, 44 insertions, 0 deletions
diff --git a/src/devices/bus/pet/diag.c b/src/devices/bus/pet/diag.c
new file mode 100644
index 00000000000..7cd73c6fff0
--- /dev/null
+++ b/src/devices/bus/pet/diag.c
@@ -0,0 +1,44 @@
+// license:BSD-3-Clause
+// copyright-holders:smf
+/**********************************************************************
+
+ Commodore PET User Port Diagnostic Connector emulation
+
+**********************************************************************/
+
+#include "diag.h"
+
+
+
+//**************************************************************************
+// DEVICE DEFINITIONS
+//**************************************************************************
+
+const device_type PET_USERPORT_DIAGNOSTIC_CONNECTOR = &device_creator<pet_userport_diagnostic_connector_t>;
+
+
+
+//**************************************************************************
+// LIVE DEVICE
+//**************************************************************************
+
+//-------------------------------------------------
+// pet_userport_diagnostic_connector_t - constructor
+//-------------------------------------------------
+
+pet_userport_diagnostic_connector_t::pet_userport_diagnostic_connector_t(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
+ device_t(mconfig, PET_USERPORT_DIAGNOSTIC_CONNECTOR, "PET Userport Diagnostic Connector", tag, owner, clock, "pet_user_diag", __FILE__),
+ device_pet_user_port_interface(mconfig, *this)
+{
+}
+
+
+//-------------------------------------------------
+// device_start - device-specific startup
+//-------------------------------------------------
+
+void pet_userport_diagnostic_connector_t::device_start()
+{
+ output_5(0);
+ output_e(0);
+}