Difference between revisions of "Instruction Set/lea"
From Mill Computing Wiki
Line 4: | Line 4: | ||
</div> | </div> | ||
− | + | Load Effective Address. | |
+ | |||
+ | Allows you to do address arithmetic the same way the [[Instruciton_Set/load|load]] and [[Instruciton_Set/store|store]] operations, and to some degree the [[Instruciton_Set/call|call]] and [[Instruciton_Set/inner|inner]] operation, do.<br /> | ||
+ | Produces pointers that in turn can then be used as base pointers for loads, stores and calls. | ||
+ | |||
---- | ---- | ||
<code style="font-size:130%"><b style="color:#050">lea</b>(<span style="color:#009">[[Sources#base|base]]</span> <span title="base special register">b</span>, <i><span style="color:#009">[[Immediates#off|off]]</span> <span title="manifest constant">o</span></i>)</code> | <code style="font-size:130%"><b style="color:#050">lea</b>(<span style="color:#009">[[Sources#base|base]]</span> <span title="base special register">b</span>, <i><span style="color:#009">[[Immediates#off|off]]</span> <span title="manifest constant">o</span></i>)</code> |
Revision as of 18:53, 20 December 2014
Load Effective Address.
Allows you to do address arithmetic the same way the load and store operations, and to some degree the call and inner operation, do.
Produces pointers that in turn can then be used as base pointers for loads, stores and calls.
operands: like Inv :
Core | In Slots | Latencies |
---|---|---|
Tin | F0 | 2 |
Copper | F0 F1 | 2 |
Silver | F0 F1 F2 F3 | 2 |
Gold | F0 F1 F2 F3 F4 F5 F6 F7 | 2 |
Decimal8 | F0 F1 F2 F3 | 2 |
Decimal16 | F0 F1 F2 F3 | 2 |
lea(base b, off o, u i, scale s)
operands: like Inv :
Core | In Slots | Latencies |
---|---|---|
Tin | F0 | 2 |
Copper | F0 F1 | 2 |
Silver | F0 F1 F2 F3 | 2 |
Gold | F0 F1 F2 F3 F4 F5 F6 F7 | 2 |
Decimal8 | F0 F1 F2 F3 | 2 |
Decimal16 | F0 F1 F2 F3 | 2 |
operands: like AllocStack xx:p
Core | In Slots | Latencies |
---|---|---|
Tin | F0 | 2 |
Copper | F0 F1 | 2 |
Silver | F0 F1 F2 F3 | 2 |
Gold | F0 F1 F2 F3 F4 F5 F6 F7 | 2 |
Decimal8 | F0 F1 F2 F3 | 2 |
Decimal16 | F0 F1 F2 F3 | 2 |
operands: like Inv :
Core | In Slots | Latencies |
---|---|---|
Tin | F0 | 2 |
Copper | F0 F1 | 2 |
Silver | F0 F1 F2 F3 | 2 |
Gold | F0 F1 F2 F3 F4 F5 F6 F7 | 2 |
Decimal8 | F0 F1 F2 F3 | 2 |
Decimal16 | F0 F1 F2 F3 | 2 |
lea(lbl l)
operands: like Inv :
Core | In Slots | Latencies |
---|---|---|
Tin | F0 | 2 |
Copper | F0 F1 | 2 |
Silver | F0 F1 F2 F3 | 2 |
Gold | F0 F1 F2 F3 F4 F5 F6 F7 | 2 |
Decimal8 | F0 F1 F2 F3 | 2 |
Decimal16 | F0 F1 F2 F3 | 2 |
Instruction Set, alphabetical, Instruction Set by Category, Instruction Set, sortable, filterable