it's a pity on x86 everyone uses XOR AL, AL instead of MOV AL, 0
because we're missing out on the scariest instruction encoding:
b0 00!
it's a pity on x86 everyone uses XOR AL, AL instead of MOV AL, 0
because we're missing out on the scariest instruction encoding:
b0 00!
@foone Oh, that's a nice thought :))
Then again, XORing registers is an old assembly habit. It will produce on virtually all architectures the most compact code. Other ways may be as compact, but not shorter or faster.
I have been doing C++ Halloween j/ks every Halloween for a couple of years now. You can join me this year with a series of ASM Halloween j/ks
#1 Spooky Halloween C++ π»ππ»ππ»ππ»ππ»π How do you curse an int? π» π» You cast a hex on it: int x = static_cast<int>(0xB00); π»ππ»ππ»ππ»ππ»π #cplusplus