{ REGION_GFX2, 0, &tilelayout2, 0, 4 }, /* only color codes 0 and 3 used */ { -1 } /* end of array */ }; static struct GfxDecodeInfo gfxdecodeinfo_cabaret[] = { { REGION_GFX1, 0, &tilelayout1, 0, 16 }, { REGION_GFX2, 0, &tilelayout3, 0, 16 }, { -1 } /* end of array */ }; static struct YM2413interface ym2413_interface = { 1, 3579545, /* 3.579545 MHz */ { YM2413_VOL(100,MIXER_PAN_CENTER,100,MIXER_PAN_CENTER) } }; static MACHINE_DRIVER_START( iqblock ) /* basic machine hardware */ MDRV_CPU_ADD(Z80,12000000/2) /* 6 MHz */ MDRV_CPU_FLAGS(CPU_16BIT_PORT) MDRV_CPU_PROGRAM_MAP(readmem,writemem) MDRV_CPU_IO_MAP(readport,writeport) MDRV_CPU_VBLANK_INT(iqblock_interrupt,16) MDRV_FRAMES_PER_SECOND(60) MDRV_VBLANK_DURATION(DEFAULT_60HZ_VBLANK_DURATION) MDRV_MACHINE_INIT(iqblock)
{ 0x0000, 0x1fff, MRA_ROM }, { 0x2000, 0x21ff, MRA_RAM }, { 0x6000, 0x6000, latch_r }, MEMORY_END static MEMORY_WRITE_START( snd_writemem ) { 0x0000, 0x1fff, MWA_ROM }, { 0x2000, 0x21ff, MWA_RAM }, { 0x4000, 0x4000, YM2413_register_port_0_w }, { 0x4001, 0x4001, YM2413_data_port_0_w }, MEMORY_END static struct YM2413interface ym2413_interface = { 1, 3579545, { YM2413_VOL(100,MIXER_PAN_CENTER,100,MIXER_PAN_CENTER) }, /* Insufficient gain. */ }; M1_BOARD_START( thunderv ) MDRV_NAME("ThunderV") // hardware name MDRV_HWDESC("Z80, YM2413") // hardware description MDRV_SEND( TV_SendCmd ) // routine to send a command to the hardware MDRV_CPU_ADD(Z80C, 4000000) MDRV_CPU_MEMORY(snd_readmem,snd_writemem) MDRV_SOUND_ADD(YM2413, &ym2413_interface) M1_BOARD_END
***************************************************************************/ static struct YMZ280Binterface realbrk_ymz280b_intf = { 1, { 33868800 / 2 }, { REGION_SOUND1 }, { YM3012_VOL(50,MIXER_PAN_LEFT,50,MIXER_PAN_RIGHT) }, { 0 } }; static struct YM2413interface realbrk_ym2413_intf = { 1, /* 1 chip */ 3579000, /* 3.579 MHz */ { YM2413_VOL(50,MIXER_PAN_CENTER,50,MIXER_PAN_CENTER) } }; static INTERRUPT_GEN( realbrk_interrupt ) { switch ( cpu_getiloops() ) { case 0: /* VBlank is connected to INT1 (external interrupts pin 1) */ tmp68301_external_interrupt_1(); break; } } static MACHINE_DRIVER_START( realbrk )