summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/bbc/tube/tube_80186.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/bbc/tube/tube_80186.h')
-rw-r--r--src/devices/bus/bbc/tube/tube_80186.h58
1 files changed, 58 insertions, 0 deletions
diff --git a/src/devices/bus/bbc/tube/tube_80186.h b/src/devices/bus/bbc/tube/tube_80186.h
new file mode 100644
index 00000000000..1c258e971df
--- /dev/null
+++ b/src/devices/bus/bbc/tube/tube_80186.h
@@ -0,0 +1,58 @@
+// license:BSD-3-Clause
+// copyright-holders:Nigel Barnes
+/**********************************************************************
+
+ Acorn ADC08 Intel 80186 Co-processor
+
+ http://chrisacorns.computinghistory.org.uk/8bit_Upgrades/Acorn_ADC08_80186Copro.html
+
+**********************************************************************/
+
+
+#ifndef MAME_BUS_BBC_TUBE_80186_H
+#define MAME_BUS_BBC_TUBE_80186_H
+
+#include "tube.h"
+#include "cpu/i86/i186.h"
+#include "machine/ram.h"
+#include "machine/tube.h"
+
+//**************************************************************************
+// TYPE DEFINITIONS
+//**************************************************************************
+
+// ======================> bbc_tube_80186_device
+
+class bbc_tube_80186_device :
+ public device_t,
+ public device_bbc_tube_interface
+{
+public:
+ // construction/destruction
+ bbc_tube_80186_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
+
+protected:
+ // device-level overrides
+ virtual void device_start() override;
+ virtual void device_reset() override;
+
+ // optional information overrides
+ virtual void device_add_mconfig(machine_config &config) override;
+ virtual const tiny_rom_entry *device_rom_region() const override;
+
+ virtual DECLARE_READ8_MEMBER( host_r ) override;
+ virtual DECLARE_WRITE8_MEMBER( host_w ) override;
+
+private:
+ required_device<i80186_cpu_device> m_i80186;
+ required_device<tube_device> m_ula;
+ required_device<ram_device> m_ram;
+ required_memory_region m_bootstrap;
+};
+
+
+// device type definition
+DECLARE_DEVICE_TYPE(BBC_TUBE_80186, bbc_tube_80186_device)
+
+
+#endif /* MAME_BUS_BBC_TUBE_80x86_H */