ASMC_STATUS_MASK
val = val & ASMC_STATUS_MASK;
if ((ASMC_CMDPORT_READ(sc) & ASMC_STATUS_MASK) == val)
val & ASMC_STATUS_MASK, ASMC_CMDPORT_READ(sc));