summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/includes/spg2xx.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/includes/spg2xx.h')
-rw-r--r--src/mame/includes/spg2xx.h33
1 files changed, 29 insertions, 4 deletions
diff --git a/src/mame/includes/spg2xx.h b/src/mame/includes/spg2xx.h
index a04b47afa9d..a0190845a40 100644
--- a/src/mame/includes/spg2xx.h
+++ b/src/mame/includes/spg2xx.h
@@ -13,6 +13,7 @@
#include "screen.h"
#include "softlist.h"
#include "speaker.h"
+#include "machine/eepromser.h"
@@ -27,6 +28,8 @@ public:
m_io_p1(*this, "P1"),
m_io_p2(*this, "P2"),
m_io_p3(*this, "P3"),
+ m_io_guny(*this, "GUNY"),
+ m_io_gunx(*this, "GUNX"),
m_i2cmem(*this, "i2cmem")
{ }
@@ -39,6 +42,8 @@ public:
void abltenni(machine_config &config);
void tvsprt10(machine_config &config);
void guitarfv(machine_config &config);
+ void pballpup(machine_config &config);
+ void tmntmutm(machine_config &config);
void init_crc();
@@ -58,10 +63,11 @@ protected:
virtual DECLARE_WRITE16_MEMBER(portb_w);
virtual DECLARE_WRITE16_MEMBER(portc_w);
- DECLARE_READ16_MEMBER(rad_porta_r);
- DECLARE_READ16_MEMBER(rad_portb_r);
- DECLARE_READ16_MEMBER(rad_portc_r);
-
+ DECLARE_READ16_MEMBER(base_porta_r);
+ DECLARE_READ16_MEMBER(base_portb_r);
+ DECLARE_READ16_MEMBER(base_portc_r);
+ DECLARE_READ16_MEMBER(base_guny_r);
+ DECLARE_READ16_MEMBER(base_gunx_r);
required_device<spg2xx_device> m_maincpu;
required_device<screen_device> m_screen;
@@ -77,10 +83,29 @@ protected:
required_ioport m_io_p1;
optional_ioport m_io_p2;
optional_ioport m_io_p3;
+ optional_ioport m_io_guny;
+ optional_ioport m_io_gunx;
optional_device<i2cmem_device> m_i2cmem;
};
+class spg2xx_game_pballpup_state : public spg2xx_game_state
+{
+public:
+ spg2xx_game_pballpup_state(const machine_config &mconfig, device_type type, const char *tag) :
+ spg2xx_game_state(mconfig, type, tag),
+ m_eeprom(*this, "eeprom")
+ { }
+
+ void pballpup(machine_config &config);
+
+private:
+ DECLARE_READ16_MEMBER(porta_r);
+ virtual DECLARE_WRITE16_MEMBER(porta_w) override;
+
+ required_device<eeprom_serial_93cxx_device> m_eeprom;
+};
+
#endif // MAME_INCLUDES_SPG2XX_H