summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/includes/megadriv_rad.h
diff options
context:
space:
mode:
author David Haywood <28625134+DavidHaywood@users.noreply.github.com>2020-10-29 13:53:03 +0000
committer GitHub <noreply@github.com>2020-10-30 00:53:03 +1100
commit2137f269814897db440bd9b14c6643cd59cd2e89 (patch)
treeb78c728ecc2ff901689820b5e95dcb4ad6adab56 /src/mame/includes/megadriv_rad.h
parent5f0507bed4677685cec435a4b3dbb826034415c0 (diff)
-Plug and Play work (lots of new sets from Sean etc.) (#7401)
new WORKING machines ----- The New York Times Sudoku [David Haywood, Sean Riddle, Kamaal Brown] Vs Maxx 25-in-1 (VT03 hardware) [David Haywood, Sean Riddle, Kamaal Brown] 6-in-1 Sudoku Plug & Play [David Haywood, Sean Riddle] Plug 'N' Play 50-in-1 (DGUN-853) [David Haywood, Sean Riddle, Kamaal Brown] new WORKING clones ----- Mega Drive Collection Volume 2 (Radica, Arcade Legends) (UK) [David Haywood, Sean Riddle] Super Sonic Gold (Radica Plug & Play) (UK) [David Haywood, Sean Riddle] new NOT WORKING machines ----- Plug 'N' Play 25-in-1 (DGUN-806) [David Haywood, Sean Riddle, Kamaal Brown] IQuest (US) [David Haywood, Sean Riddle, Kamaal Brown] - Added MegaDrive side ROM to sarc110 sets, moved to skeleton 'hybrid' driver based on megadriv_rad.cpp and demoted to not working for now as they're meant to boot from the MD side with the VT03 games as bonus items [Sean Riddle, Team Europe] - Moved reactmd to a skeleton 'hybrid' driver, demoted to not working, it's also meant to boot from the MD side with the SunPlus games as bonus items.
Diffstat (limited to 'src/mame/includes/megadriv_rad.h')
-rw-r--r--src/mame/includes/megadriv_rad.h48
1 files changed, 36 insertions, 12 deletions
diff --git a/src/mame/includes/megadriv_rad.h b/src/mame/includes/megadriv_rad.h
index 9dd0e0860f7..f931faea31b 100644
--- a/src/mame/includes/megadriv_rad.h
+++ b/src/mame/includes/megadriv_rad.h
@@ -13,25 +13,49 @@ public:
m_rom(*this, "maincpu")
{}
- void init_megadriv_radica_6button_pal();
- void init_megadriv_radica_6button_ntsc();
-
- DECLARE_MACHINE_START(megadriv_radica_6button);
- DECLARE_MACHINE_START(megadriv_radica_3button);
- DECLARE_MACHINE_RESET(megadriv_radica);
uint16_t read(offs_t offset);
uint16_t read_a13(offs_t offset);
- void megadriv_radica_6button_ntsc(machine_config &config);
- void megadriv_radica_6button_pal(machine_config &config);
- void megadriv_radica_3button_ntsc(machine_config &config);
- void megadriv_radica_3button_pal(machine_config &config);
-
void megadriv_radica_map(address_map &map);
-private:
+
+protected:
int m_bank;
+
+private:
required_region_ptr<uint16_t> m_rom;
};
+class megadriv_radica_3button_state : public megadriv_radica_state
+{
+public:
+ megadriv_radica_3button_state(const machine_config& mconfig, device_type type, const char* tag)
+ : megadriv_radica_state(mconfig, type, tag)
+ {}
+public:
+ void megadriv_radica_3button_ntsc(machine_config &config);
+ void megadriv_radica_3button_pal(machine_config &config);
+
+protected:
+ virtual void machine_start() override;
+ virtual void machine_reset() override;
+};
+
+class megadriv_radica_6button_state : public megadriv_radica_3button_state
+{
+public:
+ void megadriv_radica_6button_ntsc(machine_config &config);
+ void megadriv_radica_6button_pal(machine_config &config);
+
+ void init_megadriv_radica_6button_pal();
+ void init_megadriv_radica_6button_ntsc();
+
+public:
+ megadriv_radica_6button_state(const machine_config& mconfig, device_type type, const char* tag)
+ : megadriv_radica_3button_state(mconfig, type, tag)
+ {}
+ virtual void machine_start() override;
+};
+
+
#endif // MAME_INCLUDES_MEGADRIV_RAD_H