fvertk
fvertk

Reputation: 169

What does leal (%eax, %eax) do?

What does leal (%eax, %eax) do? Does that multiply the contents at %eax * 2 since it has parens?

Upvotes: 2

Views: 1204

Answers (1)

Alexey Frunze
Alexey Frunze

Reputation: 62048

It will load the destination operand with the sum of eax and eax, IOW, 2*eax.

Upvotes: 4

Related Questions