Implements affectation by uint16 in sp