summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/includes
diff options
context:
space:
mode:
author Devin Acker <d@revenant1.net>2020-10-09 13:18:13 -0400
committer GitHub <noreply@github.com>2020-10-10 04:18:13 +1100
commit0cb876c37536f05cd81f6a7feba8c06698b82ee7 (patch)
tree348f2712b121eab273c71e46b12e480d2e6c0c28 /src/mame/includes
parente7480193ba48eb7ffd1c79d15bc1f18a0c05f542 (diff)
pacman.cpp: promoted clubpacm and clubpacma to working (#7337)
* Corrected inputs for clubpacm. * Added inputs and protection latch for clubpacma. * Restructured clubpacm I/O stuff a bit.
Diffstat (limited to 'src/mame/includes')
-rw-r--r--src/mame/includes/pacman.h24
1 files changed, 23 insertions, 1 deletions
diff --git a/src/mame/includes/pacman.h b/src/mame/includes/pacman.h
index fcfe679c2ff..93990e0f8dc 100644
--- a/src/mame/includes/pacman.h
+++ b/src/mame/includes/pacman.h
@@ -6,6 +6,7 @@
#pragma once
#include "machine/74259.h"
+#include "machine/gen_latch.h"
#include "machine/watchdog.h"
#include "sound/namco.h"
#include "emupal.h"
@@ -175,7 +176,6 @@ public:
void init_mschamp();
void init_mbrush();
void init_pengomc1();
- void init_clubpacma();
protected:
TILEMAP_MAPPER_MEMBER(pacman_scan_rows);
@@ -264,4 +264,26 @@ protected:
void epos_portmap(address_map &map);
};
+class clubpacm_state : public pacman_state
+{
+public:
+ clubpacm_state(const machine_config &mconfig, device_type type, const char *tag)
+ : pacman_state(mconfig, type, tag)
+ , m_sublatch(*this, "sublatch")
+ , m_players(*this, "P%u", 1)
+ { }
+
+ void clubpacm(machine_config &config);
+
+ DECLARE_CUSTOM_INPUT_MEMBER(clubpacm_input_r);
+
+ void init_clubpacma();
+
+protected:
+ void clubpacm_map(address_map &map);
+
+ required_device<generic_latch_8_device> m_sublatch;
+ required_ioport_array<2> m_players;
+};
+
#endif // MAME_INCLUDES_PACMAN_H