added machine().describe_context() to debugging code (nw)

This commit is contained in:
smf- 2013-11-05 17:25:30 +00:00
parent 200321ecfb
commit e6fb92cca4

View File

@ -19,21 +19,21 @@
void ata_interface_device::set_irq(int state)
{
// printf( "irq %d\n", state );
// printf( "%s: irq %d\n", machine().describe_context(), state );
m_irq_handler(state);
}
void ata_interface_device::set_dmarq(int state)
{
// printf( "dmarq %d\n", state );
// printf( "%s: dmarq %d\n", machine().describe_context(), state );
m_dmarq_handler(state);
}
void ata_interface_device::set_dasp(int state)
{
// printf( "dasp %d\n", state );
// printf( "%s: dasp %d\n", machine().describe_context(), state );
m_dasp_handler(state);
}
@ -132,7 +132,7 @@ UINT16 ata_interface_device::read_dma()
if (m_slot[i]->dev() != NULL)
result &= m_slot[i]->dev()->read_dma();
// printf( "read_dma %04x\n", result );
// printf( "%s: read_dma %04x\n", machine().describe_context(), result );
return result;
}
@ -145,7 +145,7 @@ READ16_MEMBER( ata_interface_device::read_cs0 )
// { static int last_status = -1; if (offset == 7 ) { if( result == last_status ) return last_status; last_status = result; } else last_status = -1; }
// printf( "read cs0 %04x %04x %04x\n", offset, result, mem_mask );
// printf( "%s: read cs0 %04x %04x %04x\n", machine().describe_context(), offset, result, mem_mask );
return result;
}
@ -157,7 +157,7 @@ READ16_MEMBER( ata_interface_device::read_cs1 )
if (m_slot[i]->dev() != NULL)
result &= m_slot[i]->dev()->read_cs1(space, offset, mem_mask);
// printf( "read cs1 %04x %04x %04x\n", offset, result, mem_mask );
// printf( "%s: read cs1 %04x %04x %04x\n", machine().describe_context(), offset, result, mem_mask );
return result;
}
@ -171,7 +171,7 @@ READ16_MEMBER( ata_interface_device::read_cs1 )
void ata_interface_device::write_dma( UINT16 data )
{
// printf( "write_dma %04x\n", data );
// printf( "%s: write_dma %04x\n", machine().describe_context(), data );
for (int i = 0; i < 2; i++)
if (m_slot[i]->dev() != NULL)
@ -180,7 +180,7 @@ void ata_interface_device::write_dma( UINT16 data )
WRITE16_MEMBER( ata_interface_device::write_cs0 )
{
// printf( "write cs0 %04x %04x %04x\n", offset, data, mem_mask );
// printf( "%s: write cs0 %04x %04x %04x\n", machine().describe_context(), offset, data, mem_mask );
for (int i = 0; i < 2; i++)
if (m_slot[i]->dev() != NULL)
@ -189,7 +189,7 @@ WRITE16_MEMBER( ata_interface_device::write_cs0 )
WRITE16_MEMBER( ata_interface_device::write_cs1 )
{
// printf( "write cs1 %04x %04x %04x\n", offset, data, mem_mask );
// printf( "%s: write cs1 %04x %04x %04x\n", machine().describe_context(), offset, data, mem_mask );
for (int i = 0; i < 2; i++)
if (m_slot[i]->dev() != NULL)
@ -198,7 +198,7 @@ WRITE16_MEMBER( ata_interface_device::write_cs1 )
WRITE_LINE_MEMBER( ata_interface_device::write_dmack )
{
// printf( "write_dmack %04x\n", state );
// printf( "%s: write_dmack %04x\n", machine().describe_context(), state );
for (int i = 0; i < 2; i++)
if (m_slot[i]->dev() != NULL)