Previous 199869 Revisions Next

r33855 Saturday 13th December, 2014 at 09:54:59 UTC by Osso
Added GAME_SUPPORTS_SAVE to 5clown.c, mjkjidai.c and wallc.c (nw)
[src/mame/drivers]5clown.c mjkjidai.c wallc.c

trunk/src/mame/drivers/5clown.c
r242366r242367
456456public:
457457   _5clown_state(const machine_config &mconfig, device_type type, const char *tag)
458458      : driver_device(mconfig, type, tag),
459      m_videoram(*this, "videoram"),
460      m_colorram(*this, "colorram"),
461459      m_maincpu(*this, "maincpu"),
462460      m_audiocpu(*this, "audiocpu"),
463461      m_ay8910(*this, "ay8910"),
464462      m_gfxdecode(*this, "gfxdecode"),
465      m_palette(*this, "palette")
463      m_palette(*this, "palette"),
464      m_videoram(*this, "videoram"),
465      m_colorram(*this, "colorram")
466466   {
467467   }
468468
469   required_device<cpu_device> m_maincpu;
470   required_device<cpu_device> m_audiocpu;
471   required_device<ay8910_device> m_ay8910;
472   required_device<gfxdecode_device> m_gfxdecode;
473   required_device<palette_device> m_palette;
474   
475   required_shared_ptr<UINT8> m_videoram;
476   required_shared_ptr<UINT8> m_colorram;
477   
469478   UINT8 m_main_latch_d800;
470479   UINT8 m_snd_latch_0800;
471480   UINT8 m_snd_latch_0a02;
472481   UINT8 m_ay8910_addr;
473   required_shared_ptr<UINT8> m_videoram;
474   required_shared_ptr<UINT8> m_colorram;
475482   tilemap_t *m_bg_tilemap;
476483   int m_mux_data;
484   
477485   DECLARE_WRITE8_MEMBER(fclown_videoram_w);
478486   DECLARE_WRITE8_MEMBER(fclown_colorram_w);
479487   DECLARE_WRITE8_MEMBER(cpu_c048_w);
r242366r242367
490498   DECLARE_WRITE8_MEMBER(fclown_ay8910_w);
491499   DECLARE_DRIVER_INIT(fclown);
492500   TILE_GET_INFO_MEMBER(get_fclown_tile_info);
501   virtual void machine_start();
493502   virtual void video_start();
494503   DECLARE_PALETTE_INIT(_5clown);
495504   UINT32 screen_update_fclown(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
496   required_device<cpu_device> m_maincpu;
497   required_device<cpu_device> m_audiocpu;
498   required_device<ay8910_device> m_ay8910;
499   required_device<gfxdecode_device> m_gfxdecode;
500   required_device<palette_device> m_palette;
501505};
502506
507void _5clown_state::machine_start()
508{   
509   m_main_latch_d800 = m_snd_latch_0800 = m_snd_latch_0a02 = m_ay8910_addr = m_mux_data = 0;
510   
511   save_item(NAME(m_main_latch_d800));
512   save_item(NAME(m_snd_latch_0800));
513   save_item(NAME(m_snd_latch_0a02));
514   save_item(NAME(m_ay8910_addr));
515   save_item(NAME(m_mux_data));
516}
503517
504
505
506518/*************************
507519*     Video Hardware     *
508520*************************/
r242366r242367
12101222*************************/
12111223
12121224/*    YEAR  NAME      PARENT  MACHINE INPUT   INIT    ROT    COMPANY  FULLNAME                      FLAGS... */
1213GAME( 1993, 5clown,   0,      fclown, fclown, _5clown_state, fclown, ROT0, "IGS",   "Five Clown (English, set 1)", GAME_IMPERFECT_SOUND )
1214GAME( 1993, 5clowna,  5clown, fclown, fclown, _5clown_state, fclown, ROT0, "IGS",   "Five Clown (English, set 2)", GAME_IMPERFECT_SOUND )
1215GAME( 1993, 5clownsp, 5clown, fclown, fclown, _5clown_state, fclown, ROT0, "IGS",   "Five Clown (Spanish hack)",   GAME_IMPERFECT_SOUND )
1225GAME( 1993, 5clown,   0,      fclown, fclown, _5clown_state, fclown, ROT0, "IGS",   "Five Clown (English, set 1)", GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE )
1226GAME( 1993, 5clowna,  5clown, fclown, fclown, _5clown_state, fclown, ROT0, "IGS",   "Five Clown (English, set 2)", GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE )
1227GAME( 1993, 5clownsp, 5clown, fclown, fclown, _5clown_state, fclown, ROT0, "IGS",   "Five Clown (Spanish hack)",   GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE )
trunk/src/mame/drivers/mjkjidai.c
r242366r242367
282282void mjkjidai_state::machine_start()
283283{
284284   membank("bank1")->configure_entries(0, 4, memregion("maincpu")->base() + 0x8000, 0x4000);
285   
286   save_item(NAME(m_adpcm_pos));
287   save_item(NAME(m_adpcm_end));
288   save_item(NAME(m_keyb));
289   save_item(NAME(m_nmi_enable));
290   save_item(NAME(m_display_enable));
285291}
286292
287293void mjkjidai_state::machine_reset()
r242366r242367
361367ROM_END
362368
363369
364GAME( 1986, mjkjidai, 0, mjkjidai, mjkjidai, driver_device, 0, ROT0, "Sanritsu",  "Mahjong Kyou Jidai (Japan)", GAME_IMPERFECT_GRAPHICS )
370GAME( 1986, mjkjidai, 0, mjkjidai, mjkjidai, driver_device, 0, ROT0, "Sanritsu",  "Mahjong Kyou Jidai (Japan)", GAME_IMPERFECT_GRAPHICS | GAME_SUPPORTS_SAVE )
trunk/src/mame/drivers/wallc.c
r242366r242367
5858public:
5959   wallc_state(const machine_config &mconfig, device_type type, const char *tag)
6060      : driver_device(mconfig, type, tag),
61      m_videoram(*this, "videoram"),
6261      m_maincpu(*this, "maincpu"),
63      m_gfxdecode(*this, "gfxdecode") { }
62      m_gfxdecode(*this, "gfxdecode"),
63      m_videoram(*this, "videoram") { }
6464
65   required_device<cpu_device> m_maincpu;
66   required_device<gfxdecode_device> m_gfxdecode;
67   
6568   required_shared_ptr<UINT8> m_videoram;
69   
6670   tilemap_t *m_bg_tilemap;
71   
6772   DECLARE_WRITE8_MEMBER(wallc_videoram_w);
6873   DECLARE_WRITE8_MEMBER(wallc_coin_counter_w);
6974   DECLARE_DRIVER_INIT(wallc);
r242366r242367
7378   virtual void video_start();
7479   DECLARE_PALETTE_INIT(wallc);
7580   UINT32 screen_update_wallc(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
76   required_device<cpu_device> m_maincpu;
77   required_device<gfxdecode_device> m_gfxdecode;
7881};
7982
8083
r242366r242367
143146
144147WRITE8_MEMBER(wallc_state::wallc_videoram_w)
145148{
146   UINT8 *videoram = m_videoram;
147   videoram[offset] = data;
149   m_videoram[offset] = data;
148150   m_bg_tilemap->mark_tile_dirty(offset);
149151}
150152
151153TILE_GET_INFO_MEMBER(wallc_state::get_bg_tile_info)
152154{
153   UINT8 *videoram = m_videoram;
154   SET_TILE_INFO_MEMBER(0, videoram[tile_index] + 0x100, 1, 0);
155   SET_TILE_INFO_MEMBER(0, m_videoram[tile_index] + 0x100, 1, 0);
155156}
156157
157158void wallc_state::video_start()
r242366r242367
487488
488489}
489490
490GAME( 1984, wallc,  0,      wallc,  wallc, wallc_state, wallc,  ROT0, "Midcoin", "Wall Crash (set 1)", 0 )
491GAME( 1984, wallca, wallc,  wallc,  wallc, wallc_state, wallca, ROT0, "Midcoin", "Wall Crash (set 2)", 0 )
492GAME( 1984, brkblast,wallc, wallc,  wallc, wallc_state, wallca, ROT0, "bootleg (Fadesa)", "Brick Blast (bootleg of Wall Crash)", 0 ) // Spanish bootleg board, Fadesa stickers / text on various components
491GAME( 1984, wallc,  0,      wallc,  wallc, wallc_state, wallc,  ROT0, "Midcoin", "Wall Crash (set 1)", GAME_SUPPORTS_SAVE )
492GAME( 1984, wallca, wallc,  wallc,  wallc, wallc_state, wallca, ROT0, "Midcoin", "Wall Crash (set 2)", GAME_SUPPORTS_SAVE )
493GAME( 1984, brkblast,wallc, wallc,  wallc, wallc_state, wallca, ROT0, "bootleg (Fadesa)", "Brick Blast (bootleg of Wall Crash)", GAME_SUPPORTS_SAVE ) // Spanish bootleg board, Fadesa stickers / text on various components
493494
494GAME( 1984, sidampkr,0,     wallc,  wallc, wallc_state, sidam,  ROT270, "Sidam", "unknown Sidam Poker", GAME_NOT_WORKING )
495GAME( 1984, sidampkr,0,     wallc,  wallc, wallc_state, sidam,  ROT270, "Sidam", "unknown Sidam Poker", GAME_NOT_WORKING | GAME_SUPPORTS_SAVE )


Previous 199869 Revisions Next


© 1997-2024 The MAME Team