summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/melps4/m58846.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/cpu/melps4/m58846.h')
-rw-r--r--src/devices/cpu/melps4/m58846.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/src/devices/cpu/melps4/m58846.h b/src/devices/cpu/melps4/m58846.h
new file mode 100644
index 00000000000..25d850b455e
--- /dev/null
+++ b/src/devices/cpu/melps4/m58846.h
@@ -0,0 +1,46 @@
+// license:BSD-3-Clause
+// copyright-holders:hap
+/*
+
+ Mitsubishi M58846 MCU
+
+*/
+
+#ifndef _M58846_H_
+#define _M58846_H_
+
+#include "melps4.h"
+
+// note: for pinout and more info, see melps4.h
+
+
+class m58846_device : public melps4_cpu_device
+{
+public:
+ m58846_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
+
+protected:
+ // device-level overrides
+ virtual void device_start();
+ virtual void device_reset();
+
+ // device_execute_interface overrides
+ virtual void execute_one();
+
+ // device_disasm_interface overrides
+ virtual offs_t disasm_disassemble(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram, UINT32 options);
+
+ // timers
+ virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr);
+ virtual void write_v(UINT8 data);
+
+ emu_timer *m_timer;
+ void reset_timer();
+};
+
+
+
+extern const device_type M58846;
+
+
+#endif /* _M58846_H_ */