summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/machine/nes_legacy.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mess/machine/nes_legacy.h')
-rw-r--r--src/mess/machine/nes_legacy.h71
1 files changed, 71 insertions, 0 deletions
diff --git a/src/mess/machine/nes_legacy.h b/src/mess/machine/nes_legacy.h
new file mode 100644
index 00000000000..df905ce1a89
--- /dev/null
+++ b/src/mess/machine/nes_legacy.h
@@ -0,0 +1,71 @@
+#ifndef __NES_LEGACY_H
+#define __NES_LEGACY_H
+
+#include "machine/nes_nxrom.h"
+
+
+// ======================> nes_ffe3_device
+
+class nes_ffe3_device : public nes_nrom_device
+{
+public:
+ // construction/destruction
+ nes_ffe3_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
+
+ // device-level overrides
+ virtual void device_start();
+ virtual DECLARE_WRITE8_MEMBER(write_h);
+
+ virtual void pcb_reset();
+};
+
+
+// ======================> nes_ffe4_device
+
+class nes_ffe4_device : public nes_nrom_device
+{
+public:
+ // construction/destruction
+ nes_ffe4_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source);
+ nes_ffe4_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
+
+ // device-level overrides
+ virtual void device_start();
+ virtual DECLARE_WRITE8_MEMBER(write_l);
+ virtual DECLARE_WRITE8_MEMBER(write_h);
+
+ virtual void hblank_irq(int scanline, int vblank, int blanked);
+ virtual void pcb_reset();
+
+protected:
+ UINT16 m_irq_count;
+ int m_irq_enable;
+
+ UINT8 m_latch;
+};
+
+
+// ======================> nes_ffe8_device
+
+class nes_ffe8_device : public nes_ffe4_device
+{
+public:
+ // construction/destruction
+ nes_ffe8_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
+
+ // device-level overrides
+ virtual DECLARE_WRITE8_MEMBER(write_l);
+ virtual DECLARE_WRITE8_MEMBER(write_h) {}
+
+ virtual void pcb_reset();
+};
+
+
+
+// device type definition
+extern const device_type NES_FFE3;
+extern const device_type NES_FFE4;
+extern const device_type NES_FFE8;
+
+
+#endif