trunk/src/emu/cpu/z80/z80.h
| r30912 | r30913 | |
| 301 | 301 | virtual void execute_set_input(int inputnum, int state); |
| 302 | 302 | |
| 303 | 303 | void take_interrupt_nsc800(); |
| 304 | | UINT8 m_nsc800_irq_state[4];/* state of NSC800 restart interrupts A, B, C */ |
| 304 | UINT8 m_nsc800_irq_state[4]; /* state of NSC800 restart interrupts A, B, C */ |
| 305 | 305 | }; |
| 306 | 306 | |
| 307 | 307 | extern const device_type NSC800; |
| r30912 | r30913 | |
| 340 | 340 | |
| 341 | 341 | |
| 342 | 342 | |
| 343 | | #define MCFG_TMPZ84C011_PORTA_READ_CALLBACK(_devcb) \ |
| 343 | #define MCFG_TMPZ84C011_PORTA_READ_CB(_devcb) \ |
| 344 | 344 | devcb = &tmpz84c011_device::set_inports0_cb(*device, DEVCB_##_devcb); |
| 345 | 345 | |
| 346 | | #define MCFG_TMPZ84C011_PORTB_READ_CALLBACK(_devcb) \ |
| 346 | #define MCFG_TMPZ84C011_PORTB_READ_CB(_devcb) \ |
| 347 | 347 | devcb = &tmpz84c011_device::set_inports1_cb(*device, DEVCB_##_devcb); |
| 348 | 348 | |
| 349 | | #define MCFG_TMPZ84C011_PORTC_READ_CALLBACK(_devcb) \ |
| 349 | #define MCFG_TMPZ84C011_PORTC_READ_CB(_devcb) \ |
| 350 | 350 | devcb = &tmpz84c011_device::set_inports2_cb(*device, DEVCB_##_devcb); |
| 351 | 351 | |
| 352 | | #define MCFG_TMPZ84C011_PORTD_READ_CALLBACK(_devcb) \ |
| 352 | #define MCFG_TMPZ84C011_PORTD_READ_CB(_devcb) \ |
| 353 | 353 | devcb = &tmpz84c011_device::set_inports3_cb(*device, DEVCB_##_devcb); |
| 354 | 354 | |
| 355 | | #define MCFG_TMPZ84C011_PORTE_READ_CALLBACK(_devcb) \ |
| 355 | #define MCFG_TMPZ84C011_PORTE_READ_CB(_devcb) \ |
| 356 | 356 | devcb = &tmpz84c011_device::set_inports4_cb(*device, DEVCB_##_devcb); |
| 357 | 357 | |
| 358 | 358 | |
| 359 | | #define MCFG_TMPZ84C011_PORTA_WRITE_CALLBACK(_devcb) \ |
| 359 | #define MCFG_TMPZ84C011_PORTA_WRITE_CB(_devcb) \ |
| 360 | 360 | devcb = &tmpz84c011_device::set_outports0_cb(*device, DEVCB_##_devcb); |
| 361 | 361 | |
| 362 | | #define MCFG_TMPZ84C011_PORTB_WRITE_CALLBACK(_devcb) \ |
| 362 | #define MCFG_TMPZ84C011_PORTB_WRITE_CB(_devcb) \ |
| 363 | 363 | devcb = &tmpz84c011_device::set_outports1_cb(*device, DEVCB_##_devcb); |
| 364 | 364 | |
| 365 | | #define MCFG_TMPZ84C011_PORTC_WRITE_CALLBACK(_devcb) \ |
| 365 | #define MCFG_TMPZ84C011_PORTC_WRITE_CB(_devcb) \ |
| 366 | 366 | devcb = &tmpz84c011_device::set_outports2_cb(*device, DEVCB_##_devcb); |
| 367 | 367 | |
| 368 | | #define MCFG_TMPZ84C011_PORTD_WRITE_CALLBACK(_devcb) \ |
| 368 | #define MCFG_TMPZ84C011_PORTD_WRITE_CB(_devcb) \ |
| 369 | 369 | devcb = &tmpz84c011_device::set_outports3_cb(*device, DEVCB_##_devcb); |
| 370 | 370 | |
| 371 | | #define MCFG_TMPZ84C011_PORTE_WRITE_CALLBACK(_devcb) \ |
| 371 | #define MCFG_TMPZ84C011_PORTE_WRITE_CB(_devcb) \ |
| 372 | 372 | devcb = &tmpz84c011_device::set_outports4_cb(*device, DEVCB_##_devcb); |
| 373 | 373 | |
| 374 | 374 | |
trunk/src/mame/drivers/nbmj9195.c
| r30912 | r30913 | |
| 2825 | 2825 | |
| 2826 | 2826 | // the only difference between these 2 setups is the DAC is swapped, is that intentional? |
| 2827 | 2827 | #define OTHERS_TMZ84C011_SOUND_PORTS \ |
| 2828 | | MCFG_TMPZ84C011_PORTA_WRITE_CALLBACK(WRITE8(nbmj9195_state, soundcpu_porta_w)) \ |
| 2829 | | MCFG_TMPZ84C011_PORTB_WRITE_CALLBACK(WRITE8(nbmj9195_state,soundcpu_dac1_w)) \ |
| 2830 | | MCFG_TMPZ84C011_PORTC_WRITE_CALLBACK(WRITE8(nbmj9195_state,soundcpu_dac2_w)) \ |
| 2831 | | MCFG_TMPZ84C011_PORTD_READ_CALLBACK(READ8(nbmj9195_state, soundcpu_portd_r)) \ |
| 2832 | | MCFG_TMPZ84C011_PORTE_WRITE_CALLBACK(WRITE8(nbmj9195_state,soundcpu_porte_w)) \ |
| 2828 | MCFG_TMPZ84C011_PORTA_WRITE_CB(WRITE8(nbmj9195_state, soundcpu_porta_w)) \ |
| 2829 | MCFG_TMPZ84C011_PORTB_WRITE_CB(WRITE8(nbmj9195_state, soundcpu_dac1_w)) \ |
| 2830 | MCFG_TMPZ84C011_PORTC_WRITE_CB(WRITE8(nbmj9195_state, soundcpu_dac2_w)) \ |
| 2831 | MCFG_TMPZ84C011_PORTD_READ_CB(READ8(nbmj9195_state, soundcpu_portd_r)) \ |
| 2832 | MCFG_TMPZ84C011_PORTE_WRITE_CB(WRITE8(nbmj9195_state, soundcpu_porte_w)) \ |
| 2833 | 2833 | |
| 2834 | 2834 | #define MSCOUTM_TMZ84C011_SOUND_PORTS \ |
| 2835 | | MCFG_TMPZ84C011_PORTA_WRITE_CALLBACK(WRITE8(nbmj9195_state, soundcpu_porta_w)) \ |
| 2836 | | MCFG_TMPZ84C011_PORTB_WRITE_CALLBACK(WRITE8(nbmj9195_state,soundcpu_dac2_w)) \ |
| 2837 | | MCFG_TMPZ84C011_PORTC_WRITE_CALLBACK(WRITE8(nbmj9195_state,soundcpu_dac1_w)) \ |
| 2838 | | MCFG_TMPZ84C011_PORTD_READ_CALLBACK(READ8(nbmj9195_state, soundcpu_portd_r)) \ |
| 2839 | | MCFG_TMPZ84C011_PORTE_WRITE_CALLBACK(WRITE8(nbmj9195_state,soundcpu_porte_w)) |
| 2835 | MCFG_TMPZ84C011_PORTA_WRITE_CB(WRITE8(nbmj9195_state, soundcpu_porta_w)) \ |
| 2836 | MCFG_TMPZ84C011_PORTB_WRITE_CB(WRITE8(nbmj9195_state, soundcpu_dac2_w)) \ |
| 2837 | MCFG_TMPZ84C011_PORTC_WRITE_CB(WRITE8(nbmj9195_state, soundcpu_dac1_w)) \ |
| 2838 | MCFG_TMPZ84C011_PORTD_READ_CB(READ8(nbmj9195_state, soundcpu_portd_r)) \ |
| 2839 | MCFG_TMPZ84C011_PORTE_WRITE_CB(WRITE8(nbmj9195_state, soundcpu_porte_w)) |
| 2840 | 2840 | |
| 2841 | 2841 | |
| 2842 | 2842 | #define MSCOUTM_TMZ84C011_MAIN_PORTS \ |
| 2843 | | MCFG_TMPZ84C011_PORTA_READ_CALLBACK(READ8(nbmj9195_state, mscoutm_cpu_porta_r)) \ |
| 2844 | | MCFG_TMPZ84C011_PORTA_WRITE_CALLBACK(WRITE8(nbmj9195_state, mscoutm_cpu_porta_w)) \ |
| 2845 | | MCFG_TMPZ84C011_PORTB_READ_CALLBACK(READ8(nbmj9195_state, mscoutm_cpu_portb_r)) \ |
| 2846 | | MCFG_TMPZ84C011_PORTC_READ_CALLBACK(READ8(nbmj9195_state, mscoutm_cpu_portc_r)) \ |
| 2847 | | MCFG_TMPZ84C011_PORTD_WRITE_CALLBACK(WRITE8(nbmj9195_state, mscoutm_cpu_portd_w)) \ |
| 2848 | | MCFG_TMPZ84C011_PORTE_WRITE_CALLBACK(WRITE8(nbmj9195_state, mscoutm_cpu_porte_w)) \ |
| 2843 | MCFG_TMPZ84C011_PORTA_READ_CB(READ8(nbmj9195_state, mscoutm_cpu_porta_r)) \ |
| 2844 | MCFG_TMPZ84C011_PORTA_WRITE_CB(WRITE8(nbmj9195_state, mscoutm_cpu_porta_w)) \ |
| 2845 | MCFG_TMPZ84C011_PORTB_READ_CB(READ8(nbmj9195_state, mscoutm_cpu_portb_r)) \ |
| 2846 | MCFG_TMPZ84C011_PORTC_READ_CB(READ8(nbmj9195_state, mscoutm_cpu_portc_r)) \ |
| 2847 | MCFG_TMPZ84C011_PORTD_WRITE_CB(WRITE8(nbmj9195_state, mscoutm_cpu_portd_w)) \ |
| 2848 | MCFG_TMPZ84C011_PORTE_WRITE_CB(WRITE8(nbmj9195_state, mscoutm_cpu_porte_w)) \ |
| 2849 | 2849 | |
| 2850 | 2850 | |
| 2851 | 2851 | #define OTHERS_TMZ84C011_MAIN_PORTS \ |
| 2852 | | MCFG_TMPZ84C011_PORTA_READ_CALLBACK(READ8(nbmj9195_state, others_cpu_porta_r)) \ |
| 2853 | | MCFG_TMPZ84C011_PORTB_READ_CALLBACK(READ8(nbmj9195_state, others_cpu_portb_r)) \ |
| 2854 | | MCFG_TMPZ84C011_PORTC_READ_CALLBACK(READ8(nbmj9195_state, others_cpu_portc_r)) \ |
| 2855 | | MCFG_TMPZ84C011_PORTC_WRITE_CALLBACK(WRITE8(nbmj9195_state, others_cpu_portc_w)) \ |
| 2856 | | MCFG_TMPZ84C011_PORTD_WRITE_CALLBACK(WRITE8(nbmj9195_state, others_cpu_portd_w)) \ |
| 2857 | | MCFG_TMPZ84C011_PORTE_WRITE_CALLBACK(WRITE8(nbmj9195_state, others_cpu_porte_w)) \ |
| 2852 | MCFG_TMPZ84C011_PORTA_READ_CB(READ8(nbmj9195_state, others_cpu_porta_r)) \ |
| 2853 | MCFG_TMPZ84C011_PORTB_READ_CB(READ8(nbmj9195_state, others_cpu_portb_r)) \ |
| 2854 | MCFG_TMPZ84C011_PORTC_READ_CB(READ8(nbmj9195_state, others_cpu_portc_r)) \ |
| 2855 | MCFG_TMPZ84C011_PORTC_WRITE_CB(WRITE8(nbmj9195_state, others_cpu_portc_w)) \ |
| 2856 | MCFG_TMPZ84C011_PORTD_WRITE_CB(WRITE8(nbmj9195_state, others_cpu_portd_w)) \ |
| 2857 | MCFG_TMPZ84C011_PORTE_WRITE_CB(WRITE8(nbmj9195_state, others_cpu_porte_w)) \ |
| 2858 | 2858 | |
| 2859 | 2859 | |
| 2860 | 2860 | static MACHINE_CONFIG_START( NBMJDRV1_base, nbmj9195_state ) |
| r30912 | r30913 | |
| 2889 | 2889 | |
| 2890 | 2890 | MCFG_PALETTE_ADD("palette", 256) |
| 2891 | 2891 | |
| 2892 | | |
| 2893 | 2892 | /* sound hardware */ |
| 2894 | 2893 | MCFG_SPEAKER_STANDARD_MONO("mono") |
| 2895 | 2894 | |
trunk/src/mame/drivers/csplayh5.c
| r30912 | r30913 | |
| 478 | 478 | MCFG_CPU_CONFIG(daisy_chain_sound) |
| 479 | 479 | MCFG_CPU_PROGRAM_MAP(csplayh5_sound_map) |
| 480 | 480 | MCFG_CPU_IO_MAP(csplayh5_sound_io_map) |
| 481 | | MCFG_TMPZ84C011_PORTA_WRITE_CALLBACK(WRITE8(csplayh5_state, soundcpu_porta_w)) |
| 482 | | MCFG_TMPZ84C011_PORTB_WRITE_CALLBACK(WRITE8(csplayh5_state,soundcpu_dac2_w)) |
| 483 | | MCFG_TMPZ84C011_PORTC_WRITE_CALLBACK(WRITE8(csplayh5_state,soundcpu_dac1_w)) |
| 484 | | MCFG_TMPZ84C011_PORTD_READ_CALLBACK(READ8(csplayh5_state, soundcpu_portd_r)) |
| 485 | | MCFG_TMPZ84C011_PORTE_WRITE_CALLBACK(WRITE8(csplayh5_state,soundcpu_porte_w)) |
| 481 | MCFG_TMPZ84C011_PORTA_WRITE_CB(WRITE8(csplayh5_state, soundcpu_porta_w)) |
| 482 | MCFG_TMPZ84C011_PORTB_WRITE_CB(WRITE8(csplayh5_state, soundcpu_dac2_w)) |
| 483 | MCFG_TMPZ84C011_PORTC_WRITE_CB(WRITE8(csplayh5_state, soundcpu_dac1_w)) |
| 484 | MCFG_TMPZ84C011_PORTD_READ_CB(READ8(csplayh5_state, soundcpu_portd_r)) |
| 485 | MCFG_TMPZ84C011_PORTE_WRITE_CB(WRITE8(csplayh5_state, soundcpu_porte_w)) |
| 486 | 486 | |
| 487 | 487 | MCFG_DEVICE_ADD("ctc", Z80CTC, 8000000) |
| 488 | 488 | MCFG_Z80CTC_INTR_CB(INPUTLINE("audiocpu", INPUT_LINE_IRQ0)) |
trunk/src/mame/drivers/kenseim.c
| r30912 | r30913 | |
| 544 | 544 | MCFG_CPU_ADD("gamecpu", TMPZ84C011, XTAL_16MHz/2) // tmpz84c011-8 |
| 545 | 545 | MCFG_CPU_PROGRAM_MAP(kenseim_map) |
| 546 | 546 | MCFG_CPU_IO_MAP(kenseim_io_map) |
| 547 | | //MCFG_TMPZ84C011_PORTA_WRITE_CALLBACK(WRITE8(kenseim_state, porta_default_w)) // unused? |
| 548 | | //MCFG_TMPZ84C011_PORTB_WRITE_CALLBACK(WRITE8(kenseim_state, portb_default_w)) // unused? |
| 549 | | MCFG_TMPZ84C011_PORTC_WRITE_CALLBACK(WRITE8(kenseim_state, portc_w)) |
| 550 | | MCFG_TMPZ84C011_PORTD_WRITE_CALLBACK(WRITE8(kenseim_state, portd_w)) |
| 551 | | MCFG_TMPZ84C011_PORTE_WRITE_CALLBACK(WRITE8(kenseim_state, porte_w)) |
| 552 | | MCFG_TMPZ84C011_PORTA_READ_CALLBACK(READ8(kenseim_state, porta_r)) |
| 553 | | MCFG_TMPZ84C011_PORTB_READ_CALLBACK(READ8(kenseim_state, portb_r)) |
| 554 | | MCFG_TMPZ84C011_PORTC_READ_CALLBACK(READ8(kenseim_state, portc_r)) |
| 555 | | MCFG_TMPZ84C011_PORTD_READ_CALLBACK(READ8(kenseim_state, portd_r)) |
| 556 | | //MCFG_TMPZ84C011_PORTE_READ_CALLBACK(READ8(kenseim_state, porte_default_r)) // unused? |
| 547 | //MCFG_TMPZ84C011_PORTA_WRITE_CB(WRITE8(kenseim_state, porta_default_w)) // unused? |
| 548 | //MCFG_TMPZ84C011_PORTB_WRITE_CB(WRITE8(kenseim_state, portb_default_w)) // unused? |
| 549 | MCFG_TMPZ84C011_PORTC_WRITE_CB(WRITE8(kenseim_state, portc_w)) |
| 550 | MCFG_TMPZ84C011_PORTD_WRITE_CB(WRITE8(kenseim_state, portd_w)) |
| 551 | MCFG_TMPZ84C011_PORTE_WRITE_CB(WRITE8(kenseim_state, porte_w)) |
| 552 | MCFG_TMPZ84C011_PORTA_READ_CB(READ8(kenseim_state, porta_r)) |
| 553 | MCFG_TMPZ84C011_PORTB_READ_CB(READ8(kenseim_state, portb_r)) |
| 554 | MCFG_TMPZ84C011_PORTC_READ_CB(READ8(kenseim_state, portc_r)) |
| 555 | MCFG_TMPZ84C011_PORTD_READ_CB(READ8(kenseim_state, portd_r)) |
| 556 | //MCFG_TMPZ84C011_PORTE_READ_CB(READ8(kenseim_state, porte_default_r)) // unused? |
| 557 | 557 | MCFG_CPU_CONFIG(daisy_chain_gamecpu) |
| 558 | 558 | |
| 559 | 559 | MCFG_DEVICE_ADD("gamecpu_ctc", Z80CTC, XTAL_16MHz/2 ) // part of the tmpz84 |
trunk/src/mame/drivers/niyanpai.c
| r30912 | r30913 | |
| 782 | 782 | MCFG_DEVICE_ADD("tmp68301", TMP68301, 0) |
| 783 | 783 | MCFG_TMP68301_OUT_PARALLEL_CB(WRITE16(niyanpai_state, tmp68301_parallel_port_w)) |
| 784 | 784 | |
| 785 | | MCFG_CPU_ADD("audiocpu", TMPZ84C011, 8000000) /* TMPZ84C011, 8.00 MHz */ |
| 785 | MCFG_CPU_ADD("audiocpu", TMPZ84C011, 8000000) /* TMPZ84C011, 8.00 MHz */ |
| 786 | 786 | MCFG_CPU_CONFIG(daisy_chain_sound) |
| 787 | 787 | MCFG_CPU_PROGRAM_MAP(niyanpai_sound_map) |
| 788 | 788 | MCFG_CPU_IO_MAP(niyanpai_sound_io_map) |
| 789 | | MCFG_TMPZ84C011_PORTD_READ_CALLBACK(READ8(niyanpai_state, cpu_portd_r)) |
| 790 | | MCFG_TMPZ84C011_PORTA_WRITE_CALLBACK(WRITE8(niyanpai_state, cpu_porta_w)) |
| 791 | | MCFG_TMPZ84C011_PORTB_WRITE_CALLBACK(WRITE8(niyanpai_state,cpu_portb_w)) |
| 792 | | MCFG_TMPZ84C011_PORTC_WRITE_CALLBACK(WRITE8(niyanpai_state,cpu_portc_w)) |
| 793 | | MCFG_TMPZ84C011_PORTE_WRITE_CALLBACK(WRITE8(niyanpai_state,cpu_porte_w)) |
| 789 | MCFG_TMPZ84C011_PORTD_READ_CB(READ8(niyanpai_state, cpu_portd_r)) |
| 790 | MCFG_TMPZ84C011_PORTA_WRITE_CB(WRITE8(niyanpai_state, cpu_porta_w)) |
| 791 | MCFG_TMPZ84C011_PORTB_WRITE_CB(WRITE8(niyanpai_state, cpu_portb_w)) |
| 792 | MCFG_TMPZ84C011_PORTC_WRITE_CB(WRITE8(niyanpai_state, cpu_portc_w)) |
| 793 | MCFG_TMPZ84C011_PORTE_WRITE_CB(WRITE8(niyanpai_state, cpu_porte_w)) |
| 794 | 794 | |
| 795 | 795 | MCFG_DEVICE_ADD("ctc", Z80CTC, 8000000 /* same as "audiocpu" */) |
| 796 | 796 | MCFG_Z80CTC_INTR_CB(INPUTLINE("audiocpu", INPUT_LINE_IRQ0)) |
| r30912 | r30913 | |
| 809 | 809 | |
| 810 | 810 | MCFG_PALETTE_ADD("palette", 256*3) |
| 811 | 811 | |
| 812 | | |
| 813 | 812 | /* sound hardware */ |
| 814 | 813 | MCFG_SPEAKER_STANDARD_MONO("mono") |
| 815 | 814 | |