summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/unsp/unspfe.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/cpu/unsp/unspfe.h')
-rw-r--r--src/devices/cpu/unsp/unspfe.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/devices/cpu/unsp/unspfe.h b/src/devices/cpu/unsp/unspfe.h
new file mode 100644
index 00000000000..c30b2721e0a
--- /dev/null
+++ b/src/devices/cpu/unsp/unspfe.h
@@ -0,0 +1,27 @@
+// license:BSD-3-Clause
+// copyright-holders:Ryan Holtz
+#ifndef MAME_CPU_UNSP_UNSPFE_H
+#define MAME_CPU_UNSP_UNSPFE_H
+
+#pragma once
+
+#include "unsp.h"
+#include "cpu/drcfe.h"
+
+class unsp_frontend : public drc_frontend
+{
+public:
+ unsp_frontend(unsp_device *unsp, uint32_t window_start, uint32_t window_end, uint32_t max_sequence);
+ void flush();
+
+protected:
+ // required overrides
+ virtual bool describe(opcode_desc &desc, const opcode_desc *prev) override;
+
+private:
+ inline uint16_t read_op_word(opcode_desc &desc, int offset);
+
+ unsp_device *m_cpu;
+};
+
+#endif /* MAME_CPU_UNSP_UNSPFE_H */