made xor.s work with 16 bits