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 This instruction is only being generated by the assembler on hallow's eve.
@foone reminds me of how many Japanese people avoid the number 4's regular name ("shi" - death) and instead call it by the alternative "yon"

@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.

@foone

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

https://hachyderm.io/@shafik/113232680226822944

Shafik Yaghmour (@[email protected])

#1 Spooky Halloween C++ πŸ‘»πŸŽƒπŸ‘»πŸŽƒπŸ‘»πŸŽƒπŸ‘»πŸŽƒπŸ‘»πŸŽƒ How do you curse an int? πŸ‘» πŸ‘» You cast a hex on it: int x = static_cast<int>(0xB00); πŸ‘»πŸŽƒπŸ‘»πŸŽƒπŸ‘»πŸŽƒπŸ‘»πŸŽƒπŸ‘»πŸŽƒ #cplusplus

Hachyderm.io