Difference between revisions of "Instruction Set/call1"
m (Protected "Instruction Set/call1": generated ([Edit=<protect-level-bot>] (indefinite) [Move=<protect-level-bot>] (indefinite))) | |||
Line 4: | Line 4: | ||
</div> | </div> | ||
− | function call | + | Call function with one return value. |
+ | |||
+ | An optimization for the common case of one return value functions. There are only gang encodings of this, for functions with more arguments than the one slot [[Instruction_Set/call|call]] operations can accomodate. | ||
+ | |||
+ | As with all ganged call operations, the target address is always in the last gang slot. | ||
+ | |||
+ | <b>related operations:</b> [[Instruction_Set/calltr1|calltr1]], [[Instruction_Set/callfl1|callfl1]], [[Instruction_Set/retn|retn]] | ||
+ | |||
---- | ---- | ||
<code style="font-size:130%"><b style="color:#050">call1</b>(<span style="color:#009">[[Domains#p|p]]</span> <span title="call argument from calls window">target</span>, <span style="color:#009">[[Domains#args|args]]</span> <span title="zero or more call arguments from calls window">args</span>) → [[Domains|op]] r</code> | <code style="font-size:130%"><b style="color:#050">call1</b>(<span style="color:#009">[[Domains#p|p]]</span> <span title="call argument from calls window">target</span>, <span style="color:#009">[[Domains#args|args]]</span> <span title="zero or more call arguments from calls window">args</span>) → [[Domains|op]] r</code> |
Revision as of 17:49, 4 February 2015
Call function with one return value.
An optimization for the common case of one return value functions. There are only gang encodings of this, for functions with more arguments than the one slot call operations can accomodate.
As with all ganged call operations, the target address is always in the last gang slot.
related operations: calltr1, callfl1, retn
call1(p target, args args) → op r
encoding:
call1(op q, off target, count argc)
,
call1(op q, off target, count argc, lit argv)
,
call1(op q, off target, count argc, lit argv, lit argv)
Core | In Slots | Latencies |
---|---|---|
Tin | F0 | 1 |
Copper | F0 F1 | 1 |
Silver | F0 F1 F2 | 1 |
Gold | F0 F1 F2 F3 | 1 |
Decimal8 | F0 F1 F2 | 1 |
Decimal16 | F0 F1 F2 | 1 |
call1(lbl target, args args) → op r
encoding:
call1(off target, count argc)
,
call1(off target, count argc, lit argv)
,
call1(off target, count argc, lit argv, lit argv)
,
call1(off target, count argc, lit argv, lit argv, lit argv)
Core | In Slots | Latencies |
---|---|---|
Tin | F0 | 1 |
Copper | F0 F1 | 1 |
Silver | F0 F1 F2 | 1 |
Gold | F0 F1 F2 F3 | 1 |
Decimal8 | F0 F1 F2 | 1 |
Decimal16 | F0 F1 F2 | 1 |
Instruction Set, alphabetical, Instruction Set by Category, Instruction Set, sortable, filterable