Re: [hatari-devel] Problem with ACSI/DMA: Command is not executed

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


> In the meantime I might have found another problem in hdc.c.
> HDC_Cmd_ReadCapacity() increments the DMA address while storing the 8
> result bytes but then it explicitly increments the addrese once again by 8:
> 
> 		/* Update DMA counter */
> 		FDC_WriteDMAAddress(nDmaAddr + 8);
> 
> I don't think this is correct but rather should be:
> 
> 		FDC_WriteDMAAddress(nDmaAddr);

This is strange, HDC_Cmd_ModeSense also increments and additionally adds
16 bytes. I'm confused now whether this is right or wrong.

Take care

Uwe



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/