flat assembler
Message board for the users of flat assembler.
Index
> Tutorials and Examples > ultimate xor use |
Author |
|
MacroZ 20 Oct 2018, 18:49
It can be used to flip bits
Code: xor al,1 ; Flips the first bit Can we get another unique xor usage/trick by the next person? We want this thread to grow larger with unique answers. Forum users are encouraged to participate! _________________ The king auto-generates two things to degrade dangerous artists and intellectuals. The King reserves the right to be king and has made the culprits in advance. Half of the time or more, they are auto-generated. |
|||
20 Oct 2018, 18:49 |
|
HaHaAnonymous 20 Dec 2018, 12:03
MacroZ wrote: It can be used to flip bits... This is true. Nice find! Code: mov eax,1011b ; eax now is 1011b xor eax,1000b ; eax now is 0011b xor eax,1000b ; eax now is 1011b xor eax,0001b ; eax now is 1010b ret Thank you! |
|||
20 Dec 2018, 12:03 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.