How can I flip n number of bits in a number in assembly?
How can I flip "n" number of lower/higher bits in a number using the xor operation in assembly? How would the mask be calculated? For example, if n=2 for "1110" the mask would be "1100" for higher 2 and "0011" for lower two, however for "111111" it would be "110000" for higher two, and "000011"… Read More How can I flip n number of bits in a number in assembly?