Previous 199869 Revisions Next

r18252 Tuesday 2nd October, 2012 at 19:43:47 UTC by hap
fix dkong3 crash
[src/mame/drivers]dkong.c
[src/mame/includes]dkong.h

trunk/src/mame/drivers/dkong.c
r18251r18252
412412
413413MACHINE_START_MEMBER(dkong_state,dkong2b)
414414{
415
416415   dkong_init_device_driver_data(machine());
417416   m_hardware_type = HARDWARE_TKG04;
418417
r18251r18252
455454
456455MACHINE_START_MEMBER(dkong_state,radarscp)
457456{
458
459457    MACHINE_START_CALL_MEMBER(dkong2b);
460458    m_hardware_type = HARDWARE_TRS02;
461459    m_vidhw = DKONG_BOARD;
r18251r18252
463461
464462MACHINE_START_MEMBER(dkong_state,radarscp1)
465463{
466
467464    MACHINE_START_CALL_MEMBER(dkong2b);
468465    m_hardware_type = HARDWARE_TRS01;
469466    m_vidhw = DKONG_BOARD;
r18251r18252
471468
472469MACHINE_START_MEMBER(dkong_state,dkong3)
473470{
474
475471   dkong_init_device_driver_data(machine());
476472   m_hardware_type = HARDWARE_TKG04;
477473}
r18251r18252
607603
608604READ8_MEMBER(dkong_state::epos_decrypt_rom)
609605{
610
611606    if (offset & 0x01)
612607    {
613608        m_decrypt_counter = m_decrypt_counter - 1;
r18251r18252
703698
704699WRITE8_MEMBER(dkong_state::dkong3_2a03_reset_w)
705700{
706
707701   if (data & 1)
708702   {
709703      m_dev_n2a03a->execute().set_input_line(INPUT_LINE_RESET, CLEAR_LINE);
r18251r18252
16421636
16431637INTERRUPT_GEN_MEMBER(dkong_state::vblank_irq)
16441638{
1645
16461639   if(m_nmi_mask)
16471640      device.execute().set_input_line(INPUT_LINE_NMI, PULSE_LINE);
16481641}
r18251r18252
16691662
16701663    MCFG_PALETTE_INIT_OVERRIDE(dkong_state,dkong2b)
16711664    MCFG_VIDEO_START_OVERRIDE(dkong_state,dkong)
1672
16731665MACHINE_CONFIG_END
16741666
16751667static MACHINE_CONFIG_DERIVED( radarscp, dkong_base )
16761668
1669   /* basic machine hardware */
16771670    MCFG_MACHINE_START_OVERRIDE(dkong_state,radarscp)
16781671    MCFG_PALETTE_LENGTH(RS_PALETTE_LENGTH)
16791672    MCFG_PALETTE_INIT_OVERRIDE(dkong_state,radarscp)
16801673
16811674    /* sound hardware */
16821675    MCFG_FRAGMENT_ADD(radarscp_audio)
1683
16841676MACHINE_CONFIG_END
16851677
16861678static MACHINE_CONFIG_DERIVED( radarscp1, dkong_base )
16871679
1680   /* basic machine hardware */
16881681    MCFG_MACHINE_START_OVERRIDE(dkong_state,radarscp1)
16891682    MCFG_PALETTE_LENGTH(RS_PALETTE_LENGTH)
16901683    MCFG_PALETTE_INIT_OVERRIDE(dkong_state,radarscp1)
16911684
16921685    /* sound hardware */
16931686    MCFG_FRAGMENT_ADD(radarscp1_audio)
1694
16951687MACHINE_CONFIG_END
16961688
16971689
16981690static MACHINE_CONFIG_DERIVED( dkong2b, dkong_base )
16991691
1692   /* basic machine hardware */
17001693    MCFG_MACHINE_START_OVERRIDE(dkong_state,dkong2b)
17011694    MCFG_PALETTE_LENGTH(DK2B_PALETTE_LENGTH)
17021695
17031696    /* sound hardware */
17041697    MCFG_FRAGMENT_ADD(dkong2b_audio)
1705
17061698MACHINE_CONFIG_END
17071699
17081700static MACHINE_CONFIG_DERIVED( braze, dkong2b )
r18251r18252
17441736
17451737    /* sound hardware */
17461738    MCFG_FRAGMENT_ADD(dkongjr_audio)
1747
17481739MACHINE_CONFIG_END
17491740
17501741static MACHINE_CONFIG_DERIVED( pestplce, dkongjr )
17511742
1743    /* video hardware */
17521744    MCFG_GFXDECODE(pestplce)
17531745    MCFG_PALETTE_LENGTH(DK2B_PALETTE_LENGTH)
17541746    MCFG_PALETTE_INIT_OVERRIDE(dkong_state,dkong2b)  /* wrong! */
17551747   MCFG_SCREEN_MODIFY("screen")
17561748   MCFG_SCREEN_UPDATE_DRIVER(dkong_state, screen_update_pestplce)
1757
17581749MACHINE_CONFIG_END
17591750
17601751static MACHINE_CONFIG_DERIVED( dkong3b, dkongjr )
r18251r18252
17811772    MCFG_DEVICE_CONFIG(hb_dma)
17821773
17831774    MCFG_MACHINE_START_OVERRIDE(dkong_state,s2650)
1784
17851775MACHINE_CONFIG_END
17861776
17871777static MACHINE_CONFIG_DERIVED( spclforc, s2650 )
r18251r18252
17921782    /* video hardware */
17931783   MCFG_SCREEN_MODIFY("screen")
17941784   MCFG_SCREEN_UPDATE_DRIVER(dkong_state, screen_update_spclforc)
1795
17961785MACHINE_CONFIG_END
17971786
17981787/*************************************
r18251r18252
18041793static MACHINE_CONFIG_DERIVED( strtheat, dkong2b )
18051794
18061795   /* basic machine hardware */
1807
18081796    MCFG_CPU_MODIFY("maincpu")
18091797    MCFG_CPU_IO_MAP(epos_readport)
18101798
r18251r18252
18141802static MACHINE_CONFIG_DERIVED( drakton, dkong2b )
18151803
18161804   /* basic machine hardware */
1817
18181805    MCFG_CPU_MODIFY("maincpu")
18191806    MCFG_CPU_IO_MAP(epos_readport)
18201807
r18251r18252
18241811static MACHINE_CONFIG_DERIVED( drktnjr, dkongjr )
18251812
18261813   /* basic machine hardware */
1827
18281814    MCFG_CPU_MODIFY("maincpu")
18291815    MCFG_CPU_IO_MAP(epos_readport)
18301816
trunk/src/mame/includes/dkong.h
r18251r18252
8383      m_video_ram(*this,"video_ram"),
8484      m_sprite_ram(*this,"sprite_ram"),
8585      m_vidhw(DKONG_BOARD),
86      m_discrete(*this, "discrete") { }
86      m_discrete(*this, "discrete")
87   { }
8788
8889   /* memory pointers */
8990   required_shared_ptr<UINT8> m_video_ram;
r18251r18252
110111   emu_timer *       m_scanline_timer;
111112   INT8              m_vidhw;         /* Selected video hardware RS Conversion / TKG04 */
112113   
113   required_device<discrete_device> m_discrete;
114   optional_device<discrete_device> m_discrete;
114115   /* radar scope */
115116
116117   UINT8 *           m_gfx4;

Previous 199869 Revisions Next


© 1997-2024 The MAME Team