summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/machine/c8280.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mess/machine/c8280.h')
-rw-r--r--src/mess/machine/c8280.h82
1 files changed, 82 insertions, 0 deletions
diff --git a/src/mess/machine/c8280.h b/src/mess/machine/c8280.h
new file mode 100644
index 00000000000..37587d1505a
--- /dev/null
+++ b/src/mess/machine/c8280.h
@@ -0,0 +1,82 @@
+/**********************************************************************
+
+ Commodore 8280 Dual 8" Disk Drive emulation
+
+ Copyright MESS Team.
+ Visit http://mamedev.org for licensing and usage restrictions.
+
+**********************************************************************/
+
+#pragma once
+
+#ifndef __C8280__
+#define __C8280__
+
+
+#include "emu.h"
+#include "cpu/m6502/m6502.h"
+#include "imagedev/flopdrv.h"
+#include "machine/6532riot.h"
+#include "machine/ieee488.h"
+
+
+
+//**************************************************************************
+// TYPE DEFINITIONS
+//**************************************************************************
+
+// ======================> c8280_device
+
+class c8280_device : public device_t,
+ public device_ieee488_interface
+{
+public:
+ // construction/destruction
+ c8280_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
+
+ // optional information overrides
+ virtual const rom_entry *device_rom_region() const;
+ virtual machine_config_constructor device_mconfig_additions() const;
+
+ // not really public
+ DECLARE_READ8_MEMBER( dio_r );
+ DECLARE_WRITE8_MEMBER( dio_w );
+ DECLARE_READ8_MEMBER( riot1_pa_r );
+ DECLARE_WRITE8_MEMBER( riot1_pa_w );
+ DECLARE_READ8_MEMBER( riot1_pb_r );
+ DECLARE_WRITE8_MEMBER( riot1_pb_w );
+
+protected:
+ // device-level overrides
+ virtual void device_start();
+ virtual void device_reset();
+ virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr);
+ virtual void device_config_complete();
+
+ // device_ieee488_interface overrides
+ void ieee488_atn(int state);
+ void ieee488_ifc(int state);
+
+private:
+ inline void update_ieee_signals();
+
+ required_device<cpu_device> m_maincpu;
+ required_device<cpu_device> m_fdccpu;
+ required_device<riot6532_device> m_riot0;
+ required_device<riot6532_device> m_riot1;
+ required_device<device_t> m_image0;
+ required_device<device_t> m_image1;
+
+ // IEEE-488 bus
+ int m_rfdo; // not ready for data output
+ int m_daco; // not data accepted output
+ int m_atna; // attention acknowledge
+};
+
+
+// device type definition
+extern const device_type C8280;
+
+
+
+#endif