DMA_XFER_DONE
while ((amd_read8(amd, DMA_Status)&DMA_XFER_DONE) == 0)
if ((bval & DMA_XFER_DONE) != 0)