Previous 15994 Revisions Next

r11779 Thursday 2nd June, 2011 at 14:46:58 UTC by smf
hook up psx cd dma using machine config instead of by calling function in reset.
[src/mess/drivers]psx.c

src/mess/drivers/psx.c
r11778r11779
700700static MACHINE_RESET( psx )
701701{
702702   psx_sio_install_handler( machine, 0, psx_sio0 );
703
704   psx_dma_install_read_handler(machine, 3, psx_dma_read_delegate(FUNC(cd_dma_read),machine.device<psxcd_device>("psxcd")));
705   psx_dma_install_write_handler(machine, 3, psx_dma_write_delegate(FUNC(cd_dma_write),machine.device<psxcd_device>("psxcd")));
706703}
707704
708705static DRIVER_INIT( psx )
r11778r11779
793790   MCFG_QUICKLOAD_ADD("quickload", psx_exe_load, "cpe,exe,psf,psx", 0)
794791
795792   MCFG_CDROM_ADD("cdrom")
793
796794   MCFG_PSXCD_ADD("cdrom")
795   MCFG_PSX_DMA_CHANNEL_READ( "maincpu", 3, psx_dma_read_delegate( FUNC( cd_dma_read ), (psxcd_device *) device ) )
796   MCFG_PSX_DMA_CHANNEL_WRITE( "maincpu", 3, psx_dma_write_delegate( FUNC( cd_dma_write ), (psxcd_device *) device ) )
797
797798   MCFG_PSXCARD_ADD("card1")
798799   MCFG_PSXCARD_ADD("card2")
799800MACHINE_CONFIG_END
r11778r11779
830831   MCFG_QUICKLOAD_ADD("quickload", psx_exe_load, "cpe,exe,psf,psx", 0)
831832
832833   MCFG_CDROM_ADD("cdrom")
834
833835   MCFG_PSXCD_ADD("cdrom")
836   MCFG_PSX_DMA_CHANNEL_READ( "maincpu", 3, psx_dma_read_delegate( FUNC( cd_dma_read ), (psxcd_device *) owner ) )
837   MCFG_PSX_DMA_CHANNEL_WRITE( "maincpu", 3, psx_dma_write_delegate( FUNC( cd_dma_write ), (psxcd_device *) owner ) )
838
834839   MCFG_PSXCARD_ADD("card1")
835840   MCFG_PSXCARD_ADD("card2")
836841MACHINE_CONFIG_END

Previous 15994 Revisions Next


© 1998-2018 The MESS Team