trunk/src/mame/drivers/rpunch.c
| r31257 | r31258 | |
| 119 | 119 | |
| 120 | 120 | /************************************* |
| 121 | 121 | * |
| 122 | * Machine initialization |
| 123 | * |
| 124 | *************************************/ |
| 125 | |
| 126 | void 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 | * |
| 122 | 141 | * Interrupt handling |
| 123 | 142 | * |
| 124 | 143 | *************************************/ |
| r31257 | r31258 | |
| 814 | 833 | * |
| 815 | 834 | *************************************/ |
| 816 | 835 | |
| 817 | | GAME( 1987, rabiolep, 0, rpunch, rabiolep, rpunch_state, rabiolep, ROT0, "V-System Co.", "Rabio Lepus (Japan)", GAME_NO_COCKTAIL ) |
| 818 | | GAME( 1987, rpunch, rabiolep, rpunch, rpunch, rpunch_state, rabiolep, ROT0, "V-System Co. (Bally/Midway/Sente license)", "Rabbit Punch (US)", GAME_NO_COCKTAIL ) |
| 819 | | GAME( 1989, svolley, 0, svolley, svolley, rpunch_state, svolley, ROT0, "V-System Co.", "Super Volleyball (Japan)", GAME_NO_COCKTAIL ) |
| 820 | | GAME( 1989, svolleyk, svolley, svolley, svolley, rpunch_state, svolley, ROT0, "V-System Co.", "Super Volleyball (Korea)", GAME_NO_COCKTAIL ) |
| 821 | | GAME( 1989, svolleyu, svolley, svolley, svolley, rpunch_state, svolley, ROT0, "V-System Co. (Data East license)", "Super Volleyball (US)", GAME_NO_COCKTAIL ) |
| 836 | GAME( 1987, rabiolep, 0, rpunch, rabiolep, rpunch_state, rabiolep, ROT0, "V-System Co.", "Rabio Lepus (Japan)", GAME_SUPPORTS_SAVE | GAME_NO_COCKTAIL ) |
| 837 | GAME( 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 ) |
| 838 | GAME( 1989, svolley, 0, svolley, svolley, rpunch_state, svolley, ROT0, "V-System Co.", "Super Volleyball (Japan)", GAME_SUPPORTS_SAVE | GAME_NO_COCKTAIL ) |
| 839 | GAME( 1989, svolleyk, svolley, svolley, svolley, rpunch_state, svolley, ROT0, "V-System Co.", "Super Volleyball (Korea)", GAME_SUPPORTS_SAVE | GAME_NO_COCKTAIL ) |
| 840 | GAME( 1989, svolleyu, svolley, svolley, svolley, rpunch_state, svolley, ROT0, "V-System Co. (Data East license)", "Super Volleyball (US)", GAME_SUPPORTS_SAVE | GAME_NO_COCKTAIL ) |
| 822 | 841 | |
| 823 | 842 | // 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) |
| 824 | 843 | // the sound system seems to be ripped from the later Power Spikes (see aerofgt.c) |
trunk/src/mame/includes/rpunch.h
| r31257 | r31258 | |
| 7 | 7 | public: |
| 8 | 8 | rpunch_state(const machine_config &mconfig, device_type type, const char *tag) |
| 9 | 9 | : driver_device(mconfig, type, tag), |
| 10 | | m_videoram(*this, "videoram"), |
| 11 | | m_bitmapram(*this, "bitmapram"), |
| 12 | | m_spriteram(*this, "spriteram"), |
| 13 | 10 | m_maincpu(*this, "maincpu"), |
| 14 | 11 | m_audiocpu(*this, "audiocpu"), |
| 15 | 12 | m_upd7759(*this, "upd"), |
| 16 | 13 | m_gfxdecode(*this, "gfxdecode"), |
| 17 | 14 | 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") { } |
| 19 | 19 | |
| 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 | |
| 20 | 27 | required_shared_ptr<UINT16> m_videoram; |
| 28 | required_shared_ptr<UINT16> m_bitmapram; |
| 29 | required_shared_ptr<UINT16> m_spriteram; |
| 30 | |
| 21 | 31 | UINT8 m_sound_data; |
| 22 | 32 | UINT8 m_sound_busy; |
| 23 | 33 | UINT8 m_ym2151_irq; |
| 24 | 34 | UINT8 m_upd_rom_bank; |
| 25 | | required_shared_ptr<UINT16> m_bitmapram; |
| 26 | 35 | int m_sprite_palette; |
| 27 | | tilemap_t *m_background[2]; |
| 36 | int m_sprite_xoffs; |
| 28 | 37 | UINT16 m_videoflags; |
| 29 | 38 | UINT8 m_crtc_register; |
| 30 | | emu_timer *m_crtc_timer; |
| 31 | 39 | UINT8 m_bins; |
| 32 | 40 | UINT8 m_gins; |
| 33 | | required_shared_ptr<UINT16> m_spriteram; |
| 41 | tilemap_t *m_background[2]; |
| 42 | emu_timer *m_crtc_timer; |
| 34 | 43 | DECLARE_WRITE_LINE_MEMBER(ym2151_irq_gen); |
| 35 | 44 | DECLARE_WRITE16_MEMBER(sound_command_w); |
| 36 | 45 | DECLARE_READ8_MEMBER(sound_command_r); |
| r31257 | r31258 | |
| 48 | 57 | DECLARE_DRIVER_INIT(svolley); |
| 49 | 58 | TILE_GET_INFO_MEMBER(get_bg0_tile_info); |
| 50 | 59 | TILE_GET_INFO_MEMBER(get_bg1_tile_info); |
| 60 | virtual void machine_start(); |
| 51 | 61 | virtual void machine_reset(); |
| 52 | 62 | |
| 53 | 63 | DECLARE_VIDEO_START(rpunch); |
| 54 | 64 | DECLARE_VIDEO_START(svolley); |
| 55 | 65 | |
| 56 | | int m_sprite_xoffs; |
| 57 | 66 | |
| 58 | 67 | UINT32 screen_update_rpunch(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); |
| 59 | 68 | TIMER_CALLBACK_MEMBER(sound_command_w_callback); |
| 60 | 69 | TIMER_CALLBACK_MEMBER(crtc_interrupt_gen); |
| 61 | 70 | void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, int start, int stop); |
| 62 | 71 | 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; |
| 69 | 72 | }; |