trunk/src/mame/drivers/dkong.c
r18251 | r18252 | |
412 | 412 | |
413 | 413 | MACHINE_START_MEMBER(dkong_state,dkong2b) |
414 | 414 | { |
415 | | |
416 | 415 | dkong_init_device_driver_data(machine()); |
417 | 416 | m_hardware_type = HARDWARE_TKG04; |
418 | 417 | |
r18251 | r18252 | |
455 | 454 | |
456 | 455 | MACHINE_START_MEMBER(dkong_state,radarscp) |
457 | 456 | { |
458 | | |
459 | 457 | MACHINE_START_CALL_MEMBER(dkong2b); |
460 | 458 | m_hardware_type = HARDWARE_TRS02; |
461 | 459 | m_vidhw = DKONG_BOARD; |
r18251 | r18252 | |
463 | 461 | |
464 | 462 | MACHINE_START_MEMBER(dkong_state,radarscp1) |
465 | 463 | { |
466 | | |
467 | 464 | MACHINE_START_CALL_MEMBER(dkong2b); |
468 | 465 | m_hardware_type = HARDWARE_TRS01; |
469 | 466 | m_vidhw = DKONG_BOARD; |
r18251 | r18252 | |
471 | 468 | |
472 | 469 | MACHINE_START_MEMBER(dkong_state,dkong3) |
473 | 470 | { |
474 | | |
475 | 471 | dkong_init_device_driver_data(machine()); |
476 | 472 | m_hardware_type = HARDWARE_TKG04; |
477 | 473 | } |
r18251 | r18252 | |
607 | 603 | |
608 | 604 | READ8_MEMBER(dkong_state::epos_decrypt_rom) |
609 | 605 | { |
610 | | |
611 | 606 | if (offset & 0x01) |
612 | 607 | { |
613 | 608 | m_decrypt_counter = m_decrypt_counter - 1; |
r18251 | r18252 | |
703 | 698 | |
704 | 699 | WRITE8_MEMBER(dkong_state::dkong3_2a03_reset_w) |
705 | 700 | { |
706 | | |
707 | 701 | if (data & 1) |
708 | 702 | { |
709 | 703 | m_dev_n2a03a->execute().set_input_line(INPUT_LINE_RESET, CLEAR_LINE); |
r18251 | r18252 | |
1642 | 1636 | |
1643 | 1637 | INTERRUPT_GEN_MEMBER(dkong_state::vblank_irq) |
1644 | 1638 | { |
1645 | | |
1646 | 1639 | if(m_nmi_mask) |
1647 | 1640 | device.execute().set_input_line(INPUT_LINE_NMI, PULSE_LINE); |
1648 | 1641 | } |
r18251 | r18252 | |
1669 | 1662 | |
1670 | 1663 | MCFG_PALETTE_INIT_OVERRIDE(dkong_state,dkong2b) |
1671 | 1664 | MCFG_VIDEO_START_OVERRIDE(dkong_state,dkong) |
1672 | | |
1673 | 1665 | MACHINE_CONFIG_END |
1674 | 1666 | |
1675 | 1667 | static MACHINE_CONFIG_DERIVED( radarscp, dkong_base ) |
1676 | 1668 | |
| 1669 | /* basic machine hardware */ |
1677 | 1670 | MCFG_MACHINE_START_OVERRIDE(dkong_state,radarscp) |
1678 | 1671 | MCFG_PALETTE_LENGTH(RS_PALETTE_LENGTH) |
1679 | 1672 | MCFG_PALETTE_INIT_OVERRIDE(dkong_state,radarscp) |
1680 | 1673 | |
1681 | 1674 | /* sound hardware */ |
1682 | 1675 | MCFG_FRAGMENT_ADD(radarscp_audio) |
1683 | | |
1684 | 1676 | MACHINE_CONFIG_END |
1685 | 1677 | |
1686 | 1678 | static MACHINE_CONFIG_DERIVED( radarscp1, dkong_base ) |
1687 | 1679 | |
| 1680 | /* basic machine hardware */ |
1688 | 1681 | MCFG_MACHINE_START_OVERRIDE(dkong_state,radarscp1) |
1689 | 1682 | MCFG_PALETTE_LENGTH(RS_PALETTE_LENGTH) |
1690 | 1683 | MCFG_PALETTE_INIT_OVERRIDE(dkong_state,radarscp1) |
1691 | 1684 | |
1692 | 1685 | /* sound hardware */ |
1693 | 1686 | MCFG_FRAGMENT_ADD(radarscp1_audio) |
1694 | | |
1695 | 1687 | MACHINE_CONFIG_END |
1696 | 1688 | |
1697 | 1689 | |
1698 | 1690 | static MACHINE_CONFIG_DERIVED( dkong2b, dkong_base ) |
1699 | 1691 | |
| 1692 | /* basic machine hardware */ |
1700 | 1693 | MCFG_MACHINE_START_OVERRIDE(dkong_state,dkong2b) |
1701 | 1694 | MCFG_PALETTE_LENGTH(DK2B_PALETTE_LENGTH) |
1702 | 1695 | |
1703 | 1696 | /* sound hardware */ |
1704 | 1697 | MCFG_FRAGMENT_ADD(dkong2b_audio) |
1705 | | |
1706 | 1698 | MACHINE_CONFIG_END |
1707 | 1699 | |
1708 | 1700 | static MACHINE_CONFIG_DERIVED( braze, dkong2b ) |
r18251 | r18252 | |
1744 | 1736 | |
1745 | 1737 | /* sound hardware */ |
1746 | 1738 | MCFG_FRAGMENT_ADD(dkongjr_audio) |
1747 | | |
1748 | 1739 | MACHINE_CONFIG_END |
1749 | 1740 | |
1750 | 1741 | static MACHINE_CONFIG_DERIVED( pestplce, dkongjr ) |
1751 | 1742 | |
| 1743 | /* video hardware */ |
1752 | 1744 | MCFG_GFXDECODE(pestplce) |
1753 | 1745 | MCFG_PALETTE_LENGTH(DK2B_PALETTE_LENGTH) |
1754 | 1746 | MCFG_PALETTE_INIT_OVERRIDE(dkong_state,dkong2b) /* wrong! */ |
1755 | 1747 | MCFG_SCREEN_MODIFY("screen") |
1756 | 1748 | MCFG_SCREEN_UPDATE_DRIVER(dkong_state, screen_update_pestplce) |
1757 | | |
1758 | 1749 | MACHINE_CONFIG_END |
1759 | 1750 | |
1760 | 1751 | static MACHINE_CONFIG_DERIVED( dkong3b, dkongjr ) |
r18251 | r18252 | |
1781 | 1772 | MCFG_DEVICE_CONFIG(hb_dma) |
1782 | 1773 | |
1783 | 1774 | MCFG_MACHINE_START_OVERRIDE(dkong_state,s2650) |
1784 | | |
1785 | 1775 | MACHINE_CONFIG_END |
1786 | 1776 | |
1787 | 1777 | static MACHINE_CONFIG_DERIVED( spclforc, s2650 ) |
r18251 | r18252 | |
1792 | 1782 | /* video hardware */ |
1793 | 1783 | MCFG_SCREEN_MODIFY("screen") |
1794 | 1784 | MCFG_SCREEN_UPDATE_DRIVER(dkong_state, screen_update_spclforc) |
1795 | | |
1796 | 1785 | MACHINE_CONFIG_END |
1797 | 1786 | |
1798 | 1787 | /************************************* |
r18251 | r18252 | |
1804 | 1793 | static MACHINE_CONFIG_DERIVED( strtheat, dkong2b ) |
1805 | 1794 | |
1806 | 1795 | /* basic machine hardware */ |
1807 | | |
1808 | 1796 | MCFG_CPU_MODIFY("maincpu") |
1809 | 1797 | MCFG_CPU_IO_MAP(epos_readport) |
1810 | 1798 | |
r18251 | r18252 | |
1814 | 1802 | static MACHINE_CONFIG_DERIVED( drakton, dkong2b ) |
1815 | 1803 | |
1816 | 1804 | /* basic machine hardware */ |
1817 | | |
1818 | 1805 | MCFG_CPU_MODIFY("maincpu") |
1819 | 1806 | MCFG_CPU_IO_MAP(epos_readport) |
1820 | 1807 | |
r18251 | r18252 | |
1824 | 1811 | static MACHINE_CONFIG_DERIVED( drktnjr, dkongjr ) |
1825 | 1812 | |
1826 | 1813 | /* basic machine hardware */ |
1827 | | |
1828 | 1814 | MCFG_CPU_MODIFY("maincpu") |
1829 | 1815 | MCFG_CPU_IO_MAP(epos_readport) |
1830 | 1816 | |