ldrh r1, [r1]
sub r12, r1, 0xff00
susbs r12, r12, 0xff
beq <somewhere>