summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine/xavix_math.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/machine/xavix_math.h')
-rw-r--r--src/mame/machine/xavix_math.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/mame/machine/xavix_math.h b/src/mame/machine/xavix_math.h
new file mode 100644
index 00000000000..d0bdeb6bf1f
--- /dev/null
+++ b/src/mame/machine/xavix_math.h
@@ -0,0 +1,34 @@
+// license:BSD-3-Clause
+// copyright-holders:David Haywood
+
+#ifndef MAME_MACHINE_XAVIX_MATH_H
+#define MAME_MACHINE_XAVIX_MATH_H
+
+class xavix_math_device : public device_t
+{
+public:
+ xavix_math_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
+
+ DECLARE_READ8_MEMBER(mult_r);
+ DECLARE_WRITE8_MEMBER(mult_w);
+ DECLARE_READ8_MEMBER(mult_param_r);
+ DECLARE_WRITE8_MEMBER(mult_param_w);
+
+ DECLARE_READ8_MEMBER(barrel_r);
+ DECLARE_WRITE8_MEMBER(barrel_w);
+
+protected:
+ // device-level overrides
+ virtual void device_start() override;
+ virtual void device_reset() override;
+
+private:
+
+ uint8_t m_barrel_params[2];
+ uint8_t m_multparams[3];
+ uint8_t m_multresults[2];
+};
+
+DECLARE_DEVICE_TYPE(XAVIX_MATH, xavix_math_device)
+
+#endif // MAME_MACHINE_XAVIX_MATH_H