How do I tell whether AMOCAS.B succeeded?
After normal completion with nonzero rd, compare the low 8 bits of the value returned in rd with the low 8 bits of the expected value saved before execution; equality indicates that the swap store occurred. The returned byte is sign-extended in rd.