trunk/src/mame/drivers/finalizr.cpp
| r253677 | r253678 | |
| 350 | 350 | ROM_END |
| 351 | 351 | |
| 352 | 352 | |
| 353 | | DRIVER_INIT_MEMBER(finalizr_state,finalizr) |
| 354 | | { |
| 355 | | } |
| 356 | 353 | |
| 357 | | |
| 358 | | GAME( 1985, finalizr, 0, finalizr, finalizr, finalizr_state, finalizr, ROT90, "Konami", "Finalizer - Super Transformation", MACHINE_IMPERFECT_SOUND | MACHINE_SUPPORTS_SAVE ) |
| 359 | | GAME( 1985, finalizrb, finalizr, finalizr, finalizrb, finalizr_state, finalizr, ROT90, "bootleg", "Finalizer - Super Transformation (bootleg)", MACHINE_IMPERFECT_SOUND | MACHINE_SUPPORTS_SAVE ) |
| 354 | GAME( 1985, finalizr, 0, finalizr, finalizr, driver_device, 0, ROT90, "Konami", "Finalizer - Super Transformation", MACHINE_IMPERFECT_SOUND | MACHINE_SUPPORTS_SAVE ) |
| 355 | GAME( 1985, finalizrb, finalizr, finalizr, finalizrb, driver_device, 0, ROT90, "bootleg", "Finalizer - Super Transformation (bootleg)", MACHINE_IMPERFECT_SOUND | MACHINE_SUPPORTS_SAVE ) |
trunk/src/mame/includes/mcr.h
| r253677 | r253678 | |
| 2 | 2 | // copyright-holders:Aaron Giles |
| 3 | 3 | /************************************************************************* |
| 4 | 4 | |
| 5 | | Driver for Midway MCR games |
| 5 | Midway MCR system |
| 6 | 6 | |
| 7 | 7 | **************************************************************************/ |
| 8 | 8 | |
| r253677 | r253678 | |
| 38 | 38 | m_dpoker_hopper_timer(*this, "dp_hopper"), |
| 39 | 39 | m_samples(*this, "samples"), |
| 40 | 40 | m_gfxdecode(*this, "gfxdecode"), |
| 41 | | m_palette(*this, "palette"), |
| 42 | | m_sio_txda(0), |
| 43 | | m_sio_txdb(0) { } |
| 41 | m_palette(*this, "palette") |
| 42 | { } |
| 44 | 43 | |
| 45 | 44 | // these should be required but can't because mcr68 shares with us |
| 46 | 45 | // once the sound boards are properly device-ified, fix this |
| r253677 | r253678 | |
| 62 | 61 | required_device<gfxdecode_device> m_gfxdecode; |
| 63 | 62 | required_device<palette_device> m_palette; |
| 64 | 63 | |
| 64 | int m_sio_txda; |
| 65 | int m_sio_txdb; |
| 66 | |
| 65 | 67 | DECLARE_WRITE8_MEMBER(mcr_control_port_w); |
| 66 | 68 | DECLARE_WRITE8_MEMBER(mcr_ipu_laserdisk_w); |
| 67 | 69 | DECLARE_READ8_MEMBER(mcr_ipu_watchdog_r); |
| r253677 | r253678 | |
| 129 | 131 | void render_sprites_91399(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); |
| 130 | 132 | void render_sprites_91464(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int primask, int sprmask, int colormask); |
| 131 | 133 | void mcr_init(int cpuboard, int vidboard, int ssioboard); |
| 132 | | |
| 133 | | int m_sio_txda; |
| 134 | | int m_sio_txdb; |
| 135 | 134 | }; |
| 136 | 135 | |
| 137 | 136 | /*----------- defined in machine/mcr.c -----------*/ |
trunk/src/mame/includes/mcr3.h
| r253677 | r253678 | |
| 1 | 1 | // license:BSD-3-Clause |
| 2 | 2 | // copyright-holders:Aaron Giles |
| 3 | /************************************************************************* |
| 4 | |
| 5 | Midway MCR-3 system |
| 6 | |
| 7 | **************************************************************************/ |
| 8 | |
| 3 | 9 | class mcr3_state : public mcr_state |
| 4 | 10 | { |
| 5 | 11 | public: |
| 6 | 12 | mcr3_state(const machine_config &mconfig, device_type type, const char *tag) |
| 7 | 13 | : mcr_state(mconfig, type, tag), |
| 8 | | m_spyhunt_alpharam(*this, "spyhunt_alpha"), |
| 9 | | m_screen(*this, "screen") { } |
| 14 | m_spyhunt_alpharam(*this, "spyhunt_alpha"), |
| 15 | m_screen(*this, "screen") |
| 16 | { } |
| 10 | 17 | |
| 18 | optional_shared_ptr<UINT8> m_spyhunt_alpharam; |
| 19 | required_device<screen_device> m_screen; |
| 20 | |
| 11 | 21 | UINT8 m_input_mux; |
| 12 | 22 | UINT8 m_latched_input; |
| 13 | 23 | UINT8 m_last_op4; |
| r253677 | r253678 | |
| 18 | 28 | INT8 m_maxrpm_p2_shift; |
| 19 | 29 | UINT8 m_spyhunt_sprite_color_mask; |
| 20 | 30 | INT16 m_spyhunt_scroll_offset; |
| 21 | | optional_shared_ptr<UINT8> m_spyhunt_alpharam; |
| 22 | 31 | INT16 m_spyhunt_scrollx; |
| 23 | 32 | INT16 m_spyhunt_scrolly; |
| 24 | 33 | tilemap_t *m_bg_tilemap; |
| 25 | 34 | tilemap_t *m_alpha_tilemap; |
| 35 | |
| 26 | 36 | DECLARE_WRITE8_MEMBER(spyhuntpr_paletteram_w); |
| 27 | 37 | DECLARE_WRITE8_MEMBER(mcr3_videoram_w); |
| 28 | 38 | DECLARE_WRITE8_MEMBER(spyhunt_videoram_w); |
| r253677 | r253678 | |
| 75 | 85 | |
| 76 | 86 | DECLARE_WRITE8_MEMBER(spyhuntpr_port04_w); |
| 77 | 87 | DECLARE_WRITE8_MEMBER(spyhuntpr_fd00_w); |
| 78 | | required_device<screen_device> m_screen; |
| 79 | 88 | }; |
trunk/src/mame/includes/mcr68.h
| r253677 | r253678 | |
| 1 | 1 | // license:BSD-3-Clause |
| 2 | | // copyright-holders:Aaron Giles |
| 2 | // copyright-holders:Aaron Giles, Bryan McPhail |
| 3 | /*************************************************************************** |
| 4 | |
| 5 | Midway MCR-68k system |
| 6 | |
| 7 | ***************************************************************************/ |
| 8 | |
| 3 | 9 | #include "machine/6821pia.h" |
| 4 | 10 | #include "audio/midway.h" |
| 5 | 11 | #include "audio/williams.h" |
| r253677 | r253678 | |
| 23 | 29 | m_sounds_good(*this, "sg"), |
| 24 | 30 | m_turbo_chip_squeak(*this, "tcs"), |
| 25 | 31 | m_cvsd_sound(*this, "cvsd"), |
| 26 | | m_videoram(*this, "videoram"), |
| 27 | | m_spriteram(*this, "spriteram") , |
| 32 | m_videoram(*this, "videoram"), |
| 33 | m_spriteram(*this, "spriteram") , |
| 28 | 34 | m_maincpu(*this, "maincpu"), |
| 29 | 35 | m_gfxdecode(*this, "gfxdecode"), |
| 30 | 36 | m_screen(*this, "screen"), |
| 31 | | m_palette(*this, "palette") { } |
| 37 | m_palette(*this, "palette") |
| 38 | { } |
| 32 | 39 | |
| 33 | 40 | optional_device<midway_chip_squeak_deluxe_device> m_chip_squeak_deluxe; |
| 34 | 41 | optional_device<midway_sounds_good_device> m_sounds_good; |
trunk/src/mame/machine/mcr68.cpp
| r253677 | r253678 | |
| 1 | 1 | // license:BSD-3-Clause |
| 2 | | // copyright-holders:Aaron Giles |
| 2 | // copyright-holders:Aaron Giles, Bryan McPhail |
| 3 | 3 | /*************************************************************************** |
| 4 | 4 | |
| 5 | | Midway MCR system |
| 5 | Midway MCR-68k system |
| 6 | 6 | |
| 7 | 7 | ***************************************************************************/ |
| 8 | 8 | |
| r253677 | r253678 | |
| 49 | 49 | |
| 50 | 50 | MACHINE_START_MEMBER(mcr68_state,mcr68) |
| 51 | 51 | { |
| 52 | | int i; |
| 53 | | |
| 54 | | for (i = 0; i < 3; i++) |
| 52 | for (int i = 0; i < 3; i++) |
| 55 | 53 | { |
| 56 | 54 | struct counter_state *m6840 = &m_m6840_state[i]; |
| 57 | 55 | |
| r253677 | r253678 | |
| 75 | 73 | |
| 76 | 74 | void mcr68_state::mcr68_common_init() |
| 77 | 75 | { |
| 78 | | int i; |
| 79 | | |
| 80 | 76 | /* reset the 6840's */ |
| 81 | | m_m6840_counter_periods[0] = attotime::from_hz(30); /* clocked by /VBLANK */ |
| 82 | | m_m6840_counter_periods[1] = attotime::never; /* grounded */ |
| 83 | | m_m6840_counter_periods[2] = attotime::from_hz(512 * 30); /* clocked by /HSYNC */ |
| 77 | m_m6840_counter_periods[0] = attotime::from_hz(30); /* clocked by /VBLANK */ |
| 78 | m_m6840_counter_periods[1] = attotime::never; /* grounded */ |
| 79 | m_m6840_counter_periods[2] = attotime::from_hz(512 * 30); /* clocked by /HSYNC */ |
| 84 | 80 | |
| 85 | 81 | m_m6840_status = 0x00; |
| 86 | 82 | m_m6840_status_read_since_int = 0x00; |
| 87 | 83 | m_m6840_msb_buffer = m_m6840_lsb_buffer = 0; |
| 88 | | for (i = 0; i < 3; i++) |
| 84 | for (int i = 0; i < 3; i++) |
| 89 | 85 | { |
| 90 | 86 | struct counter_state *m6840 = &m_m6840_state[i]; |
| 91 | 87 | |