3 ms·
and the address generation units do double-duty as low-latency, high-throughput add-and-shift units, via the LEA instruction. For example, lea eax, [ecx+ec
by userbinator 6y ago
and the address generation units do double-duty as low-latency, high-throughput add-and-shift units, via the LEA instruction.
For example,
lea eax, [ecx+ecx*8+42]
is equivalent to eax = ecx * 9 + 42, so you get a multiplication, an addition, and a move (without destroying the source register) in one instruction.
- akira2501 6y ago> without destroying the source register or the FLAGS register. Which can be very useful in some spectacular corner cases.