Previous 199869 Revisions Next

r45166 Tuesday 23rd February, 2016 at 09:24:13 UTC by hap
mcr: small cleanup
[src/mame/drivers]finalizr.cpp mcr68.cpp
[src/mame/includes]finalizr.h mcr.h mcr3.h mcr68.h
[src/mame/machine]mcr68.cpp

trunk/src/mame/drivers/finalizr.cpp
r253677r253678
350350ROM_END
351351
352352
353DRIVER_INIT_MEMBER(finalizr_state,finalizr)
354{
355}
356353
357
358GAME( 1985, finalizr,  0,        finalizr, finalizr, finalizr_state,  finalizr, ROT90, "Konami",  "Finalizer - Super Transformation", MACHINE_IMPERFECT_SOUND | MACHINE_SUPPORTS_SAVE )
359GAME( 1985, finalizrb, finalizr, finalizr, finalizrb, finalizr_state, finalizr, ROT90, "bootleg", "Finalizer - Super Transformation (bootleg)", MACHINE_IMPERFECT_SOUND | MACHINE_SUPPORTS_SAVE )
354GAME( 1985, finalizr,  0,        finalizr, finalizr,  driver_device, 0, ROT90, "Konami", "Finalizer - Super Transformation", MACHINE_IMPERFECT_SOUND | MACHINE_SUPPORTS_SAVE )
355GAME( 1985, finalizrb, finalizr, finalizr, finalizrb, driver_device, 0, ROT90, "bootleg", "Finalizer - Super Transformation (bootleg)", MACHINE_IMPERFECT_SOUND | MACHINE_SUPPORTS_SAVE )
trunk/src/mame/drivers/mcr68.cpp
r253677r253678
11// license:BSD-3-Clause
2// copyright-holders:Aaron Giles
2// copyright-holders:Aaron Giles, Bryan McPhail
33/***************************************************************************
44
55    Midway MCR-68k system
trunk/src/mame/includes/finalizr.h
r253677r253678
5757   DECLARE_READ8_MEMBER(i8039_T1_r);
5858   DECLARE_WRITE8_MEMBER(i8039_T0_w);
5959   DECLARE_WRITE8_MEMBER(finalizr_videoctrl_w);
60   DECLARE_DRIVER_INIT(finalizr);
6160   TILE_GET_INFO_MEMBER(get_bg_tile_info);
6261   TILE_GET_INFO_MEMBER(get_fg_tile_info);
6362   virtual void machine_start() override;
trunk/src/mame/includes/mcr.h
r253677r253678
22// copyright-holders:Aaron Giles
33/*************************************************************************
44
5    Driver for Midway MCR games
5    Midway MCR system
66
77**************************************************************************/
88
r253677r253678
3838      m_dpoker_hopper_timer(*this, "dp_hopper"),
3939      m_samples(*this, "samples"),
4040      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   { }
4443
4544   // these should be required but can't because mcr68 shares with us
4645   // once the sound boards are properly device-ified, fix this
r253677r253678
6261   required_device<gfxdecode_device> m_gfxdecode;
6362   required_device<palette_device> m_palette;
6463
64   int m_sio_txda;
65   int m_sio_txdb;
66
6567   DECLARE_WRITE8_MEMBER(mcr_control_port_w);
6668   DECLARE_WRITE8_MEMBER(mcr_ipu_laserdisk_w);
6769   DECLARE_READ8_MEMBER(mcr_ipu_watchdog_r);
r253677r253678
129131   void render_sprites_91399(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
130132   void render_sprites_91464(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int primask, int sprmask, int colormask);
131133   void mcr_init(int cpuboard, int vidboard, int ssioboard);
132
133   int m_sio_txda;
134   int m_sio_txdb;
135134};
136135
137136/*----------- defined in machine/mcr.c -----------*/
trunk/src/mame/includes/mcr3.h
r253677r253678
11// license:BSD-3-Clause
22// copyright-holders:Aaron Giles
3/*************************************************************************
4
5    Midway MCR-3 system
6
7**************************************************************************/
8
39class mcr3_state : public mcr_state
410{
511public:
612   mcr3_state(const machine_config &mconfig, device_type type, const char *tag)
713      : 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   { }
1017
18   optional_shared_ptr<UINT8> m_spyhunt_alpharam;
19   required_device<screen_device> m_screen;
20
1121   UINT8 m_input_mux;
1222   UINT8 m_latched_input;
1323   UINT8 m_last_op4;
r253677r253678
1828   INT8 m_maxrpm_p2_shift;
1929   UINT8 m_spyhunt_sprite_color_mask;
2030   INT16 m_spyhunt_scroll_offset;
21   optional_shared_ptr<UINT8> m_spyhunt_alpharam;
2231   INT16 m_spyhunt_scrollx;
2332   INT16 m_spyhunt_scrolly;
2433   tilemap_t *m_bg_tilemap;
2534   tilemap_t *m_alpha_tilemap;
35
2636   DECLARE_WRITE8_MEMBER(spyhuntpr_paletteram_w);
2737   DECLARE_WRITE8_MEMBER(mcr3_videoram_w);
2838   DECLARE_WRITE8_MEMBER(spyhunt_videoram_w);
r253677r253678
7585
7686   DECLARE_WRITE8_MEMBER(spyhuntpr_port04_w);
7787   DECLARE_WRITE8_MEMBER(spyhuntpr_fd00_w);
78   required_device<screen_device> m_screen;
7988};
trunk/src/mame/includes/mcr68.h
r253677r253678
11// 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
39#include "machine/6821pia.h"
410#include "audio/midway.h"
511#include "audio/williams.h"
r253677r253678
2329      m_sounds_good(*this, "sg"),
2430      m_turbo_chip_squeak(*this, "tcs"),
2531      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") ,
2834      m_maincpu(*this, "maincpu"),
2935      m_gfxdecode(*this, "gfxdecode"),
3036      m_screen(*this, "screen"),
31      m_palette(*this, "palette") { }
37      m_palette(*this, "palette")
38   { }
3239
3340   optional_device<midway_chip_squeak_deluxe_device> m_chip_squeak_deluxe;
3441   optional_device<midway_sounds_good_device> m_sounds_good;
trunk/src/mame/machine/mcr68.cpp
r253677r253678
11// license:BSD-3-Clause
2// copyright-holders:Aaron Giles
2// copyright-holders:Aaron Giles, Bryan McPhail
33/***************************************************************************
44
5    Midway MCR system
5    Midway MCR-68k system
66
77***************************************************************************/
88
r253677r253678
4949
5050MACHINE_START_MEMBER(mcr68_state,mcr68)
5151{
52   int i;
53
54   for (i = 0; i < 3; i++)
52   for (int i = 0; i < 3; i++)
5553   {
5654      struct counter_state *m6840 = &m_m6840_state[i];
5755
r253677r253678
7573
7674void mcr68_state::mcr68_common_init()
7775{
78   int i;
79
8076   /* 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 */
8480
8581   m_m6840_status = 0x00;
8682   m_m6840_status_read_since_int = 0x00;
8783   m_m6840_msb_buffer = m_m6840_lsb_buffer = 0;
88   for (i = 0; i < 3; i++)
84   for (int i = 0; i < 3; i++)
8985   {
9086      struct counter_state *m6840 = &m_m6840_state[i];
9187


Previous 199869 Revisions Next


© 1997-2024 The MAME Team