summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/includes/cop01.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/includes/cop01.h')
-rw-r--r--src/mame/includes/cop01.h23
1 files changed, 18 insertions, 5 deletions
diff --git a/src/mame/includes/cop01.h b/src/mame/includes/cop01.h
index 2112905a2b3..e48944c476d 100644
--- a/src/mame/includes/cop01.h
+++ b/src/mame/includes/cop01.h
@@ -7,6 +7,7 @@
*************************************************************************/
#include "machine/gen_latch.h"
+#include "machine/nb1412m2.h"
class cop01_state : public driver_device
{
@@ -35,8 +36,6 @@ public:
/* sound-related */
int m_pulse;
int m_timer; // kludge for ym3526 in mightguy
- uint8_t m_prot_command;
- uint8_t m_prot_reg[6];
/* devices */
required_device<cpu_device> m_maincpu;
@@ -66,12 +65,26 @@ public:
DECLARE_PALETTE_INIT(cop01);
uint32_t screen_update_cop01(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
void draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect );
- void mightguy(machine_config &config);
void cop01(machine_config &config);
void audio_io_map(address_map &map);
void cop01_map(address_map &map);
void io_map(address_map &map);
- void mightguy_audio_io_map(address_map &map);
- void mightguy_io_map(address_map &map);
void sound_map(address_map &map);
};
+
+class mightguy_state : public cop01_state
+{
+public:
+ mightguy_state(const machine_config &mconfig, device_type type, const char *tag)
+ : cop01_state(mconfig, type, tag)
+ , m_prot(*this, "prot_chip")
+ {}
+
+
+ void mightguy(machine_config &config);
+private:
+ void mightguy_io_map(address_map &map);
+ void mightguy_audio_io_map(address_map &map);
+
+ required_device<nb1412m2_device> m_prot;
+};