Previous 199869 Revisions Next

r31258 Friday 11th July, 2014 at 10:49:29 UTC by Osso
Added working save states to svolleybl and the rest of rpunch.c game drivers. (nw)
[src/mame/drivers]rpunch.c
[src/mame/includes]rpunch.h

trunk/src/mame/drivers/rpunch.c
r31257r31258
119119
120120/*************************************
121121 *
122 *  Machine initialization
123 *
124 *************************************/
125 
126void rpunch_state::machine_start()
127{
128   save_item(NAME(m_sound_data));
129   save_item(NAME(m_sound_busy));
130   save_item(NAME(m_ym2151_irq));
131   save_item(NAME(m_upd_rom_bank));
132   save_item(NAME(m_sprite_xoffs));
133   save_item(NAME(m_videoflags));
134   save_item(NAME(m_crtc_register));
135   save_item(NAME(m_bins));
136   save_item(NAME(m_gins));
137}
138
139/*************************************
140 *
122141 *  Interrupt handling
123142 *
124143 *************************************/
r31257r31258
814833 *
815834 *************************************/
816835
817GAME( 1987, rabiolep, 0,        rpunch,   rabiolep, rpunch_state, rabiolep, ROT0, "V-System Co.", "Rabio Lepus (Japan)", GAME_NO_COCKTAIL )
818GAME( 1987, rpunch,   rabiolep, rpunch,   rpunch, rpunch_state,   rabiolep, ROT0, "V-System Co. (Bally/Midway/Sente license)", "Rabbit Punch (US)", GAME_NO_COCKTAIL )
819GAME( 1989, svolley,  0,        svolley,  svolley, rpunch_state,  svolley,  ROT0, "V-System Co.", "Super Volleyball (Japan)", GAME_NO_COCKTAIL )
820GAME( 1989, svolleyk, svolley,  svolley,  svolley, rpunch_state,  svolley,  ROT0, "V-System Co.", "Super Volleyball (Korea)", GAME_NO_COCKTAIL )
821GAME( 1989, svolleyu, svolley,  svolley,  svolley, rpunch_state,  svolley,  ROT0, "V-System Co. (Data East license)", "Super Volleyball (US)", GAME_NO_COCKTAIL )
836GAME( 1987, rabiolep, 0,        rpunch,   rabiolep, rpunch_state, rabiolep, ROT0, "V-System Co.", "Rabio Lepus (Japan)", GAME_SUPPORTS_SAVE | GAME_NO_COCKTAIL )
837GAME( 1987, rpunch,   rabiolep, rpunch,   rpunch, rpunch_state,   rabiolep, ROT0, "V-System Co. (Bally/Midway/Sente license)", "Rabbit Punch (US)", GAME_SUPPORTS_SAVE | GAME_NO_COCKTAIL )
838GAME( 1989, svolley,  0,        svolley,  svolley, rpunch_state,  svolley,  ROT0, "V-System Co.", "Super Volleyball (Japan)", GAME_SUPPORTS_SAVE | GAME_NO_COCKTAIL )
839GAME( 1989, svolleyk, svolley,  svolley,  svolley, rpunch_state,  svolley,  ROT0, "V-System Co.", "Super Volleyball (Korea)", GAME_SUPPORTS_SAVE | GAME_NO_COCKTAIL )
840GAME( 1989, svolleyu, svolley,  svolley,  svolley, rpunch_state,  svolley,  ROT0, "V-System Co. (Data East license)", "Super Volleyball (US)", GAME_SUPPORTS_SAVE | GAME_NO_COCKTAIL )
822841
823842// video registers are changed, and there's some kind of RAM at 090xxx, possible a different sprite scheme for the bootleg (even if the original is intact)
824843// the sound system seems to be ripped from the later Power Spikes (see aerofgt.c)
trunk/src/mame/includes/rpunch.h
r31257r31258
77public:
88   rpunch_state(const machine_config &mconfig, device_type type, const char *tag)
99      : driver_device(mconfig, type, tag),
10      m_videoram(*this, "videoram"),
11      m_bitmapram(*this, "bitmapram"),
12      m_spriteram(*this, "spriteram"),
1310      m_maincpu(*this, "maincpu"),
1411      m_audiocpu(*this, "audiocpu"),
1512      m_upd7759(*this, "upd"),
1613      m_gfxdecode(*this, "gfxdecode"),
1714      m_screen(*this, "screen"),
18      m_palette(*this, "palette") { }
15      m_palette(*this, "palette"),
16      m_videoram(*this, "videoram"),
17      m_bitmapram(*this, "bitmapram"),
18      m_spriteram(*this, "spriteram") { }
1919
20   required_device<cpu_device> m_maincpu;
21   required_device<cpu_device> m_audiocpu;
22   required_device<upd7759_device> m_upd7759;
23   required_device<gfxdecode_device> m_gfxdecode;
24   required_device<screen_device> m_screen;
25   required_device<palette_device> m_palette;
26   
2027   required_shared_ptr<UINT16> m_videoram;
28   required_shared_ptr<UINT16> m_bitmapram;
29   required_shared_ptr<UINT16> m_spriteram;
30   
2131   UINT8 m_sound_data;
2232   UINT8 m_sound_busy;
2333   UINT8 m_ym2151_irq;
2434   UINT8 m_upd_rom_bank;
25   required_shared_ptr<UINT16> m_bitmapram;
2635   int m_sprite_palette;
27   tilemap_t *m_background[2];
36   int m_sprite_xoffs;
2837   UINT16 m_videoflags;
2938   UINT8 m_crtc_register;
30   emu_timer *m_crtc_timer;
3139   UINT8 m_bins;
3240   UINT8 m_gins;
33   required_shared_ptr<UINT16> m_spriteram;
41   tilemap_t *m_background[2];
42   emu_timer *m_crtc_timer;
3443   DECLARE_WRITE_LINE_MEMBER(ym2151_irq_gen);
3544   DECLARE_WRITE16_MEMBER(sound_command_w);
3645   DECLARE_READ8_MEMBER(sound_command_r);
r31257r31258
4857   DECLARE_DRIVER_INIT(svolley);
4958   TILE_GET_INFO_MEMBER(get_bg0_tile_info);
5059   TILE_GET_INFO_MEMBER(get_bg1_tile_info);
60   virtual void machine_start();
5161   virtual void machine_reset();
5262   
5363   DECLARE_VIDEO_START(rpunch);
5464   DECLARE_VIDEO_START(svolley);
5565
56   int m_sprite_xoffs;
5766
5867   UINT32 screen_update_rpunch(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
5968   TIMER_CALLBACK_MEMBER(sound_command_w_callback);
6069   TIMER_CALLBACK_MEMBER(crtc_interrupt_gen);
6170   void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, int start, int stop);
6271   void draw_bitmap(bitmap_ind16 &bitmap, const rectangle &cliprect);
63   required_device<cpu_device> m_maincpu;
64   required_device<cpu_device> m_audiocpu;
65   required_device<upd7759_device> m_upd7759;
66   required_device<gfxdecode_device> m_gfxdecode;
67   required_device<screen_device> m_screen;
68   required_device<palette_device> m_palette;
6972};

Previous 199869 Revisions Next


© 1997-2024 The MAME Team