This page is a random collection of items from different sources. If you wish to add something, please email us.
One trick for swapping variables does not appear all that necessary in 'C', but can be very useful in limited memory cases: In 'C': int a,b; a = 5; b = 22; //to swap a^=b^=a^=b; //now a=22 and b=5
The same trick in asm may look like: mov a,5 mov b,22 ;now swap xor a,b xor b,a xor a,b ;now a=22 and b=5