Previous 15994 Revisions Next

r6599 Thursday 10th December, 2009 at 01:21:29 UTC by Barry Rodewald
[FMTOWNS] Added YM3438 config and IRQ handler.
[src/mess/drivers]fmtowns.c

src/mess/drivers/fmtowns.c
r6598r6599
18951895   return r;
18961896}
18971897
1898// YM3438 interrupt
1899void towns_fm_irq(const device_config* device, int irq)
1900{
1901   const device_config* pic = devtag_get_device(device->machine,"pic8259_slave");
1902   if(irq)
1903      pic8259_set_irq_line(pic,5,1);
1904   else
1905      pic8259_set_irq_line(pic,5,0);
1906}
1907
18981908static PIC8259_SET_INT_LINE( towns_pic_irq )
18991909{
19001910   cputag_set_input_line(device->machine,"maincpu",0,interrupt ? HOLD_LINE : CLEAR_LINE);
r6598r6599
19621972static ADDRESS_MAP_START(marty_mem, ADDRESS_SPACE_PROGRAM, 32)
19631973  AM_RANGE(0x00000000, 0x000bffff) AM_RAM
19641974  AM_RANGE(0x000c0000, 0x000c7fff) AM_READWRITE8(towns_gfx_r,towns_gfx_w,0xffffffff)
1965  AM_RANGE(0x000c8000, 0x000c8fff) AM_READWRITE(SMH_BANK(2),SMH_BANK(2))
1966  AM_RANGE(0x000c9000, 0x000c9fff) AM_READWRITE(SMH_BANK(3),SMH_BANK(3))
1967  AM_RANGE(0x000ca000, 0x000ca7ff) AM_READWRITE(SMH_BANK(4),SMH_BANK(5))
1968  AM_RANGE(0x000ca800, 0x000cafff) AM_READWRITE(SMH_BANK(10),SMH_BANK(10))
1975  AM_RANGE(0x000c8000, 0x000cafff) AM_READWRITE8(towns_spriteram_low_r,towns_spriteram_low_w,0xffffffff)
19691976  AM_RANGE(0x000cb000, 0x000cbfff) AM_READWRITE(SMH_BANK(6),SMH_BANK(7))
19701977  AM_RANGE(0x000cc000, 0x000cff7f) AM_READWRITE(SMH_BANK(8),SMH_BANK(8))
19711978  AM_RANGE(0x000cff80, 0x000cffff) AM_READWRITE8(towns_video_cff80_r,towns_video_cff80_w,0xffffffff)
r6598r6599
24072414   { towns_fdc_dma_w, 0, 0, 0 }
24082415};
24092416
2417static const ym3438_interface ym3438_intf =
2418{
2419   towns_fm_irq
2420};
2421
24102422static const gfx_layout fnt_chars_16x16 =
24112423{
24122424   16,16,
r6598r6599
24562468    /* sound hardware */
24572469    MDRV_SPEAKER_STANDARD_MONO("mono")
24582470   MDRV_SOUND_ADD("fm", YM3438, 53693100 / 7) // actual clock speed unknown
2459//  MDRV_SOUND_CONFIG(ym3438_interface)
2471   MDRV_SOUND_CONFIG(ym3438_intf)
24602472   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
24612473   MDRV_SOUND_ADD("pcm", RF5C68, 2150000)  // actual clock speed unknown
24622474//  MDRV_SOUND_CONFIG(rf5c68_interface)

Previous 15994 Revisions Next


© 1998-2018 The MESS Team