CURRENTFIFOREG
ResidCnt = amd_read8(amd, CURRENTFIFOREG) & 0x1f;
bval = amd_read8(amd, CURRENTFIFOREG);