summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/vidbrain/comp_language.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/vidbrain/comp_language.h')
-rw-r--r--src/devices/bus/vidbrain/comp_language.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/src/devices/bus/vidbrain/comp_language.h b/src/devices/bus/vidbrain/comp_language.h
new file mode 100644
index 00000000000..32ae4e10ce0
--- /dev/null
+++ b/src/devices/bus/vidbrain/comp_language.h
@@ -0,0 +1,46 @@
+// license:BSD-3-Clause
+// copyright-holders:hap
+/**********************************************************************
+
+ VideoBrain The Computational Language cartridge emulation
+
+**********************************************************************/
+
+#ifndef MAME_BUS_VIDBRAIN_COMP_LANGUAGE_H
+#define MAME_BUS_VIDBRAIN_COMP_LANGUAGE_H
+
+#pragma once
+
+#include "exp.h"
+
+
+
+//**************************************************************************
+// TYPE DEFINITIONS
+//**************************************************************************
+
+// ======================> videobrain_comp_language_cartridge_device
+
+class videobrain_comp_language_cartridge_device : public device_t, public device_videobrain_expansion_card_interface
+{
+public:
+ // construction/destruction
+ videobrain_comp_language_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
+
+protected:
+ // device-level overrides
+ virtual void device_start() override ATTR_COLD;
+
+ // device_videobrain_expansion_card_interface overrides
+ virtual uint8_t videobrain_bo_r(offs_t offset, int cs1, int cs2) override;
+ virtual void videobrain_bo_w(offs_t offset, uint8_t data, int cs1, int cs2) override;
+
+private:
+ uint8_t m_bank;
+};
+
+
+// device type definition
+DECLARE_DEVICE_TYPE(VB_COMP_LANGUAGE, videobrain_comp_language_cartridge_device)
+
+#endif // MAME_BUS_VIDBRAIN_COMP_LANGUAGE_H