Re:Intel fires warning shots at Microsoft, says x86 emulatio...
by kccqzy on Saturday June 10, 2017 @11:18PM
(#14530431)
Fine. If you are really into getting the shortest instruction, try "xorl %eax,%eax" then "incl %eax" which is four bytes (31 c0 ff c0).
Re:Intel fires warning shots at Microsoft, says x86 emulatio...
by gsg on Sunday June 11, 2017 @12:35AM
(#14530655)
push $1/pop %eax (6a 01 58) is shorter, but perhaps not the best idea.
It's still one byte longer than the equivalent AArch64 instruction, though.