Difference between revisions of "Instruction Set/lea"
Line 17: | Line 17: | ||
---- | ---- | ||
− | <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>) → [[Domains#op|op]] r<sub>0</sub></code> |
− | <div style="font-size:80%;line-height:90%;margin-bottom:2em">'''operands:''' [[Operands# | + | <div style="font-size:80%;line-height:90%;margin-bottom:2em">'''operands:''' [[Operands#likeLea|like Lea px:p]] |
</div> | </div> | ||
<br /> | <br /> | ||
Line 25: | Line 25: | ||
! [[Cores|Core]] || [[Slot|In Slots]]|| [[Latency|Latencies]] | ! [[Cores|Core]] || [[Slot|In Slots]]|| [[Latency|Latencies]] | ||
|- | |- | ||
− | | [[Cores/Tin/Encoding#lea|Tin]] || F0 || | + | | [[Cores/Tin/Encoding#lea|Tin]] || F0 || |
|- | |- | ||
− | | [[Cores/Copper/Encoding#lea|Copper]] || F0 | + | | [[Cores/Copper/Encoding#lea|Copper]] || F0 || |
|- | |- | ||
− | | [[Cores/Silver/Encoding#lea|Silver]] || F0 F1 F2 | + | | [[Cores/Silver/Encoding#lea|Silver]] || F0 F1 F2 || |
|- | |- | ||
− | | [[Cores/Gold/Encoding#lea|Gold]] || F0 | + | | [[Cores/Gold/Encoding#lea|Gold]] || F0 || |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
|} | |} | ||
---- | ---- | ||
<code style="font-size:130%"><b style="color:#050">lea</b>(<span style="color:#009">[[Domains#p|p]]</span> <span title="belt operand from opsWindow">b</span>, <i><span style="color:#009">[[Immediates#off|off]]</span> <span title="manifest constant">o</span></i>) → [[Domains#op|op]] r<sub>0</sub></code> | <code style="font-size:130%"><b style="color:#050">lea</b>(<span style="color:#009">[[Domains#p|p]]</span> <span title="belt operand from opsWindow">b</span>, <i><span style="color:#009">[[Immediates#off|off]]</span> <span title="manifest constant">o</span></i>) → [[Domains#op|op]] r<sub>0</sub></code> | ||
− | <div style="font-size:80%;line-height:90%;margin-bottom:2em">'''operands:''' [[Operands# | + | <div style="font-size:80%;line-height:90%;margin-bottom:2em">'''operands:''' [[Operands#likeLea|like Lea px:p]] |
</div> | </div> | ||
<br /> | <br /> | ||
Line 70: | Line 43: | ||
! [[Cores|Core]] || [[Slot|In Slots]]|| [[Latency|Latencies]] | ! [[Cores|Core]] || [[Slot|In Slots]]|| [[Latency|Latencies]] | ||
|- | |- | ||
− | | [[Cores/Tin/Encoding#lea|Tin]] || F0 || | + | | [[Cores/Tin/Encoding#lea|Tin]] || F0 || |
|- | |- | ||
− | | [[Cores/Copper/Encoding#lea|Copper]] || F0 | + | | [[Cores/Copper/Encoding#lea|Copper]] || F0 || |
|- | |- | ||
− | | [[Cores/Silver/Encoding#lea|Silver]] || F0 F1 F2 | + | | [[Cores/Silver/Encoding#lea|Silver]] || F0 F1 F2 || |
|- | |- | ||
− | | [[Cores/Gold/Encoding#lea|Gold]] || F0 | + | | [[Cores/Gold/Encoding#lea|Gold]] || F0 || |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
|} | |} | ||
---- | ---- | ||
− | <code style="font-size:130%"><b style="color:#050">lea</b>( | + | <code style="font-size:130%"><b style="color:#050">lea</b>(<i><span style="color:#009">[[Immediates#lbl|lbl]]</span> <span title="name of label or function">l</span></i>) → [[Domains#op|op]] r<sub>0</sub></code> |
− | + | <div style="font-size:80%;line-height:90%;margin-bottom:2em">'''operands:''' [[Operands#likeLea|like Lea px:p]] | |
− | <div style="font-size:80%;line-height:90%;margin-bottom:2em">'''operands:''' [[Operands# | + | |
</div> | </div> | ||
<br /> | <br /> | ||
Line 93: | Line 61: | ||
! [[Cores|Core]] || [[Slot|In Slots]]|| [[Latency|Latencies]] | ! [[Cores|Core]] || [[Slot|In Slots]]|| [[Latency|Latencies]] | ||
|- | |- | ||
− | | [[Cores/Tin/Encoding#lea|Tin]] || F0 || | + | | [[Cores/Tin/Encoding#lea|Tin]] || F0 || |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
|- | |- | ||
− | | [[Cores/ | + | | [[Cores/Copper/Encoding#lea|Copper]] || F0 || |
|- | |- | ||
− | | [[Cores/ | + | | [[Cores/Silver/Encoding#lea|Silver]] || F0 F1 F2 || |
|- | |- | ||
− | | [[Cores/ | + | | [[Cores/Gold/Encoding#lea|Gold]] || F0 || |
|} | |} | ||
[[Instruction_Set|Instruction Set, alphabetical]], [[Instruction Set by Category]], [http://millcomputing.com/instructions.html?collapse=7#ops Instruction Set, sortable, filterable] | [[Instruction_Set|Instruction Set, alphabetical]], [[Instruction Set by Category]], [http://millcomputing.com/instructions.html?collapse=7#ops Instruction Set, sortable, filterable] |
Latest revision as of 14:13, 23 February 2021
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.
There are several different addressing modes. The general formula for computing addresses is
base+offset+(scale*index)
.
Base can come from a number of special Registers or the belt. Offset is always an inline constant. Those two are always present, although a zero offset doesn't take any space at all.
Scale and index are optional and alway appear together. The scale is a compile time constant, the index is always from the belt.
related operations: load, store, loadf, loadd, call, inner
Core | In Slots | Latencies |
---|---|---|
Tin | F0 | |
Copper | F0 | |
Silver | F0 F1 F2 | |
Gold | F0 |
Core | In Slots | Latencies |
---|---|---|
Tin | F0 | |
Copper | F0 | |
Silver | F0 F1 F2 | |
Gold | F0 |
Core | In Slots | Latencies |
---|---|---|
Tin | F0 | |
Copper | F0 | |
Silver | F0 F1 F2 | |
Gold | F0 |
Instruction Set, alphabetical, Instruction Set by Category, Instruction Set, sortable, filterable