summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/machine/nes_ave.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mess/machine/nes_ave.h')
-rw-r--r--src/mess/machine/nes_ave.h67
1 files changed, 67 insertions, 0 deletions
diff --git a/src/mess/machine/nes_ave.h b/src/mess/machine/nes_ave.h
new file mode 100644
index 00000000000..3fa5e365a29
--- /dev/null
+++ b/src/mess/machine/nes_ave.h
@@ -0,0 +1,67 @@
+#ifndef __NES_AVE_H
+#define __NES_AVE_H
+
+#include "machine/nes_nxrom.h"
+
+
+// ======================> nes_nina001_device
+
+class nes_nina001_device : public nes_nrom_device
+{
+public:
+ // construction/destruction
+ nes_nina001_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_m);
+
+ virtual void pcb_reset();
+};
+
+
+// ======================> nes_nina006_device
+
+class nes_nina006_device : public nes_nrom_device
+{
+public:
+ // construction/destruction
+ nes_nina006_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 void pcb_reset();
+};
+
+
+// ======================> nes_maxi15_device
+
+class nes_maxi15_device : public nes_nrom_device
+{
+public:
+ // construction/destruction
+ nes_maxi15_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
+
+ // device-level overrides
+ virtual void device_start();
+ virtual DECLARE_READ8_MEMBER(read_h);
+
+ virtual void pcb_reset();
+
+private:
+ void update_banks();
+ UINT8 m_reg, m_bank;
+};
+
+
+
+
+
+// device type definition
+extern const device_type NES_NINA001;
+extern const device_type NES_NINA006;
+extern const device_type NES_MAXI15;
+
+#endif