trunk/src/mame/drivers/gticlub.c
| r20675 | r20676 | |
| 509 | 509 | |
| 510 | 510 | static INPUT_PORTS_START( gticlub ) |
| 511 | 511 | PORT_START("IN0") |
| 512 | | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON1 ) // View switch |
| 513 | | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON2 ) // Shift Down |
| 514 | | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON3 ) // Shift Up |
| 515 | | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON4 ) // AT/MT switch |
| 512 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("View switch") |
| 513 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("Shift Down") |
| 514 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_NAME("Shift Up") |
| 515 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_NAME("AT/MT switch") |
| 516 | 516 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) PORT_NAME("Service Button") PORT_CODE(KEYCODE_8) |
| 517 | 517 | PORT_BIT( 0x0b, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 518 | 518 | |
| r20675 | r20676 | |
| 540 | 540 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 541 | 541 | |
| 542 | 542 | PORT_START("AN0") /* mask default type sens delta min max */ |
| 543 | | PORT_BIT( 0x3ff, 0x200, IPT_PADDLE ) PORT_MINMAX(0x000,0x3ff) PORT_SENSITIVITY(35) PORT_KEYDELTA(5) |
| 543 | PORT_BIT( 0x3ff, 0x200, IPT_PADDLE ) PORT_NAME("Steering Wheel") PORT_MINMAX(0x000,0x3ff) PORT_SENSITIVITY(35) PORT_KEYDELTA(5) |
| 544 | 544 | |
| 545 | 545 | PORT_START("AN1") |
| 546 | | PORT_BIT( 0x3ff, 0x000, IPT_PEDAL ) PORT_MINMAX(0x000,0x3ff) PORT_SENSITIVITY(35) PORT_KEYDELTA(5) |
| 546 | PORT_BIT( 0x3ff, 0x000, IPT_PEDAL ) PORT_NAME("Accelerator") PORT_MINMAX(0x000,0x3ff) PORT_SENSITIVITY(35) PORT_KEYDELTA(5) |
| 547 | 547 | |
| 548 | 548 | PORT_START("AN2") |
| 549 | | PORT_BIT( 0x3ff, 0x000, IPT_PEDAL2 ) PORT_MINMAX(0x000,0x3ff) PORT_SENSITIVITY(35) PORT_KEYDELTA(5) |
| 549 | PORT_BIT( 0x3ff, 0x000, IPT_PEDAL2 ) PORT_NAME("Brake") PORT_MINMAX(0x000,0x3ff) PORT_SENSITIVITY(35) PORT_KEYDELTA(5) |
| 550 | 550 | |
| 551 | 551 | PORT_START("AN3") |
| 552 | | PORT_BIT( 0x3ff, 0x000, IPT_PEDAL3 ) PORT_MINMAX(0x000,0x3ff) PORT_SENSITIVITY(35) PORT_KEYDELTA(5) |
| 552 | PORT_BIT( 0x3ff, 0x000, IPT_PEDAL3 ) PORT_NAME("Handbrake") PORT_MINMAX(0x000,0x3ff) PORT_SENSITIVITY(35) PORT_KEYDELTA(5) |
| 553 | 553 | |
| 554 | 554 | INPUT_PORTS_END |
| 555 | 555 | |
| r20675 | r20676 | |
| 722 | 722 | int line = (irq == 0) ? INPUT_LINE_IRQ1 : INPUT_LINE_IRQ2; |
| 723 | 723 | |
| 724 | 724 | machine.device("audiocpu")->execute().set_input_line(line, ASSERT_LINE); |
| 725 | | machine.scheduler().timer_set(attotime::from_usec(1), timer_expired_delegate(FUNC(gticlub_state::irq_off),state), line); |
| 725 | machine.scheduler().timer_set(attotime::from_usec(5), timer_expired_delegate(FUNC(gticlub_state::irq_off),state), line); |
| 726 | 726 | } |
| 727 | 727 | |
| 728 | 728 | static const k056800_interface gticlub_k056800_interface = |
| r20675 | r20676 | |
| 845 | 845 | |
| 846 | 846 | MCFG_K001604_ADD("k001604_1", gticlub_k001604_intf) |
| 847 | 847 | |
| 848 | | MCFG_K056800_ADD("k056800", gticlub_k056800_interface) |
| 848 | MCFG_K056800_ADD("k056800", gticlub_k056800_interface, 64000000/4) |
| 849 | 849 | |
| 850 | 850 | MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") |
| 851 | 851 | |
| 852 | | MCFG_SOUND_ADD("rfsnd", RF5C400, 64000000/4) |
| 852 | MCFG_SOUND_ADD("rfsnd", RF5C400, 33868800/2) |
| 853 | 853 | MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) |
| 854 | 854 | MCFG_SOUND_ROUTE(1, "rspeaker", 1.0) |
| 855 | 855 | MACHINE_CONFIG_END |
| r20675 | r20676 | |
| 962 | 962 | MCFG_K001604_ADD("k001604_1", hangplt_k001604_intf_l) |
| 963 | 963 | MCFG_K001604_ADD("k001604_2", hangplt_k001604_intf_r) |
| 964 | 964 | |
| 965 | | MCFG_K056800_ADD("k056800", gticlub_k056800_interface) |
| 965 | MCFG_K056800_ADD("k056800", gticlub_k056800_interface, 64000000/4) |
| 966 | 966 | |
| 967 | 967 | MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") |
| 968 | 968 | |
| 969 | | MCFG_SOUND_ADD("rfsnd", RF5C400, 64000000/4) |
| 969 | MCFG_SOUND_ADD("rfsnd", RF5C400, 33868800/2) |
| 970 | 970 | MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) |
| 971 | 971 | MCFG_SOUND_ROUTE(1, "rspeaker", 1.0) |
| 972 | 972 | MACHINE_CONFIG_END |
trunk/src/mame/drivers/zr107.c
| r20675 | r20676 | |
| 189 | 189 | int m_ccu_vcth; |
| 190 | 190 | int m_ccu_vctl; |
| 191 | 191 | optional_shared_ptr<UINT32> m_workram; |
| 192 | emu_timer *m_sound_irq_timer; |
| 192 | 193 | UINT32 *m_sharc_dataram; |
| 193 | 194 | DECLARE_WRITE32_MEMBER(paletteram32_w); |
| 194 | 195 | DECLARE_READ8_MEMBER(sysreg_r); |
| r20675 | r20676 | |
| 412 | 413 | /* set conservative DRC options */ |
| 413 | 414 | ppcdrc_set_options(machine().device("maincpu"), PPCDRC_COMPATIBLE_OPTIONS); |
| 414 | 415 | |
| 416 | m_sound_irq_timer = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(zr107_state::irq_off),this)); |
| 417 | |
| 415 | 418 | /* configure fast RAM regions for DRC */ |
| 416 | 419 | ppcdrc_add_fastram(machine().device("maincpu"), 0x00000000, 0x000fffff, FALSE, m_workram); |
| 417 | 420 | } |
| r20675 | r20676 | |
| 689 | 692 | int line = (irq == 0) ? INPUT_LINE_IRQ1 : INPUT_LINE_IRQ2; |
| 690 | 693 | |
| 691 | 694 | machine.device("audiocpu")->execute().set_input_line(line, ASSERT_LINE); |
| 692 | | machine.scheduler().timer_set(attotime::from_usec(1), timer_expired_delegate(FUNC(zr107_state::irq_off),state), line); |
| 695 | machine.scheduler().timer_set(attotime::from_usec(5), timer_expired_delegate(FUNC(zr107_state::irq_off),state), line); |
| 693 | 696 | } |
| 694 | 697 | |
| 695 | 698 | static const k056800_interface zr107_k056800_interface = |
| r20675 | r20676 | |
| 762 | 765 | |
| 763 | 766 | MCFG_K056832_ADD("k056832", zr107_k056832_intf) |
| 764 | 767 | |
| 765 | | MCFG_K056800_ADD("k056800", zr107_k056800_interface) |
| 768 | MCFG_K056800_ADD("k056800", zr107_k056800_interface, 64000000/4) |
| 766 | 769 | |
| 767 | 770 | MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") |
| 768 | 771 | |
| r20675 | r20676 | |
| 818 | 821 | |
| 819 | 822 | MCFG_K001604_ADD("k001604", jetwave_k001604_intf) |
| 820 | 823 | |
| 821 | | MCFG_K056800_ADD("k056800", zr107_k056800_interface) |
| 824 | MCFG_K056800_ADD("k056800", zr107_k056800_interface, 64000000/4) |
| 822 | 825 | |
| 823 | 826 | MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") |
| 824 | 827 | |