> This case assumes that the SDM bit is zero already. I think just > masking both bits off above, right after the read, is the easiest, then > you can also lose the else branch below entirely. Thanks for this remark. I fixed it in the next revision.