summaryrefslogtreecommitdiffstats
path: root/src/devices/bus/s100/dg640.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/s100/dg640.h')
-rw-r--r--src/devices/bus/s100/dg640.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/src/devices/bus/s100/dg640.h b/src/devices/bus/s100/dg640.h
new file mode 100644
index 00000000000..0ad7dc2e2b0
--- /dev/null
+++ b/src/devices/bus/s100/dg640.h
@@ -0,0 +1,47 @@
+// license:BSD-3-Clause
+// copyright-holders:Robbbert
+/**********************************************************************
+
+ DG640 Video Card
+
+**********************************************************************/
+
+#ifndef MAME_BUS_S100_DG640_H
+#define MAME_BUS_S100_DG640_H
+
+#pragma once
+
+#include "bus/s100/s100.h"
+
+class dg640_device : public device_t, public device_s100_card_interface
+{
+public:
+ // construction/destruction
+ dg640_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock);
+
+protected:
+ // device-level overrides
+ virtual void device_start() override;
+ virtual void device_add_mconfig(machine_config &config) override;
+ virtual const tiny_rom_entry *device_rom_region() const override;
+
+ // device_s100_card_interface overrides
+ virtual u8 s100_smemr_r(offs_t offset) override;
+ virtual void s100_mwrt_w(offs_t offset, u8 data) override;
+
+private:
+ u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
+
+ // object finders
+ required_region_ptr<u8> m_p_chargen;
+
+ // internal state
+ std::unique_ptr<u8[]> m_p_videoram;
+ std::unique_ptr<u8[]> m_p_attribram;
+ u8 m_framecnt;
+};
+
+
+DECLARE_DEVICE_TYPE(S100_DG640, device_s100_card_interface)
+
+#endif // MAME_BUS_S100_DG640_H