Previous 199869 Revisions Next

r26009 Tuesday 5th November, 2013 at 17:25:30 UTC by smf
added machine().describe_context() to debugging code (nw)
[src/emu/machine]ataintf.c

trunk/src/emu/machine/ataintf.c
r26008r26009
1919
2020void ata_interface_device::set_irq(int state)
2121{
22//  printf( "irq %d\n", state );
22//  printf( "%s: irq %d\n", machine().describe_context(), state );
2323
2424   m_irq_handler(state);
2525}
2626
2727void ata_interface_device::set_dmarq(int state)
2828{
29//  printf( "dmarq %d\n", state );
29//  printf( "%s: dmarq %d\n", machine().describe_context(), state );
3030
3131   m_dmarq_handler(state);
3232}
3333
3434void ata_interface_device::set_dasp(int state)
3535{
36//  printf( "dasp %d\n", state );
36//  printf( "%s: dasp %d\n", machine().describe_context(), state );
3737
3838   m_dasp_handler(state);
3939}
r26008r26009
132132      if (m_slot[i]->dev() != NULL)
133133         result &= m_slot[i]->dev()->read_dma();
134134
135//  printf( "read_dma %04x\n", result );
135//  printf( "%s: read_dma %04x\n", machine().describe_context(), result );
136136   return result;
137137}
138138
r26008r26009
145145
146146//  { static int last_status = -1; if (offset == 7 ) { if( result == last_status ) return last_status; last_status = result; } else last_status = -1; }
147147
148//  printf( "read cs0 %04x %04x %04x\n", offset, result, mem_mask );
148//  printf( "%s: read cs0 %04x %04x %04x\n", machine().describe_context(), offset, result, mem_mask );
149149
150150   return result;
151151}
r26008r26009
157157      if (m_slot[i]->dev() != NULL)
158158         result &= m_slot[i]->dev()->read_cs1(space, offset, mem_mask);
159159
160//  printf( "read cs1 %04x %04x %04x\n", offset, result, mem_mask );
160//  printf( "%s: read cs1 %04x %04x %04x\n", machine().describe_context(), offset, result, mem_mask );
161161
162162   return result;
163163}
r26008r26009
171171
172172void ata_interface_device::write_dma( UINT16 data )
173173{
174//  printf( "write_dma %04x\n", data );
174//  printf( "%s: write_dma %04x\n", machine().describe_context(), data );
175175
176176   for (int i = 0; i < 2; i++)
177177      if (m_slot[i]->dev() != NULL)
r26008r26009
180180
181181WRITE16_MEMBER( ata_interface_device::write_cs0 )
182182{
183//  printf( "write cs0 %04x %04x %04x\n", offset, data, mem_mask );
183//  printf( "%s: write cs0 %04x %04x %04x\n", machine().describe_context(), offset, data, mem_mask );
184184
185185   for (int i = 0; i < 2; i++)
186186      if (m_slot[i]->dev() != NULL)
r26008r26009
189189
190190WRITE16_MEMBER( ata_interface_device::write_cs1 )
191191{
192//  printf( "write cs1 %04x %04x %04x\n", offset, data, mem_mask );
192//  printf( "%s: write cs1 %04x %04x %04x\n", machine().describe_context(), offset, data, mem_mask );
193193
194194   for (int i = 0; i < 2; i++)
195195      if (m_slot[i]->dev() != NULL)
r26008r26009
198198
199199WRITE_LINE_MEMBER( ata_interface_device::write_dmack )
200200{
201//  printf( "write_dmack %04x\n", state );
201//  printf( "%s: write_dmack %04x\n", machine().describe_context(), state );
202202
203203   for (int i = 0; i < 2; i++)
204204      if (m_slot[i]->dev() != NULL)

Previous 199869 Revisions Next


© 1997-2024 The MAME Team