3 ms·
Also, we use sign-magnitude representation while x86 uses twos complement. > It didn't have this property and looked more like a normal instruction, kens would
by bonzini 4y ago
Also, we use sign-magnitude representation while x86 uses twos complement.
> It didn't have this property and looked more like a normal instruction, kens would have to tell us if it shared the same microcode.
If you're thinking of "IMUL reg,reg" it was added only in 80186. If instead you're thinking of AAD, then yes it reuses the CORX subroutine; it's only unsigned so it doesn't need the parts that deal with negation.
- ajross 4y agoI meant the former, and indeed you're right it didn't even exist yet. Until today, I don't believe I ever even realized that AAD could be used to perform a (non-widening) 8 bit multiplication by an immediate. Thanks for the reference.