| 1 |
|
| 2 |
<refentry id="printarray"> |
| 3 |
<indexterm id="IndexPrintarray"><primary>printarray</primary></indexterm> |
| 4 |
|
| 5 |
<refentryinfo><title>Array Opcodes</title></refentryinfo> |
| 6 |
<refmeta> |
| 7 |
<refentrytitle>printarray</refentrytitle> |
| 8 |
</refmeta> |
| 9 |
|
| 10 |
<refnamediv> |
| 11 |
<refname>printarray</refname> |
| 12 |
<refpurpose> |
| 13 |
Print the contents of an array |
| 14 |
</refpurpose> |
| 15 |
</refnamediv> |
| 16 |
|
| 17 |
<refsect1> |
| 18 |
<title>Description</title> |
| 19 |
<para>Plugin opcode in emugens.</para> |
| 20 |
<para> |
| 21 |
Prints the contents of an array |
| 22 |
</para> |
| 23 |
</refsect1> |
| 24 |
|
| 25 |
<refsect1> |
| 26 |
<title>Syntax</title> |
| 27 |
|
| 28 |
<synopsis><command>printarray</command> ixs[] [, Smft, Slabel ]</synopsis> |
| 29 |
<synopsis><command>printarray</command> kxs[] [, ktrig, Sfmt, Slabel ]</synopsis> |
| 30 |
|
| 31 |
</refsect1> |
| 32 |
|
| 33 |
<refsect1> |
| 34 |
<title>Initialization</title> |
| 35 |
<para> |
| 36 |
<emphasis>Sfmt</emphasis> - If given, it is passed to printf for |
| 37 |
each element of the array. Otherwise a default format is used |
| 38 |
</para> |
| 39 |
<para> |
| 40 |
<emphasis>Slabel</emphasis> - If given, it is printed before the |
| 41 |
contents of the array, to easily identify the data |
| 42 |
</para> |
| 43 |
</refsect1> |
| 44 |
|
| 45 |
<refsect1> |
| 46 |
<title>Performance</title> |
| 47 |
|
| 48 |
<para> |
| 49 |
<emphasis>ktrig</emphasis> - The array will be printed whenever |
| 50 |
this value changes from 0 to possitive. Can be used together |
| 51 |
with metro to print at a given time interval. A value of -1 |
| 52 |
indicates to print at each k-cycle (default = 1) |
| 53 |
</para> |
| 54 |
|
| 55 |
</refsect1> |
| 56 |
<refsect1> |
| 57 |
|
| 58 |
|
| 59 |
|
| 60 |
<title>Examples</title> |
| 61 |
<para> |
| 62 |
Here is an example of the printarray opcode. It uses the file <ulink url="examples/printarray.csd"><citetitle>printarray.csd</citetitle></ulink>. |
| 63 |
<example> |
| 64 |
<title>Example of the printarray opcode.</title> |
| 65 |
<xi:include href="examples-xml/printarray.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 66 |
</example> |
| 67 |
</para> |
| 68 |
</refsect1> |
| 69 |
|
| 70 |
<refsect1> |
| 71 |
<title>See also</title> |
| 72 |
<para><link linkend="SigioPdisplay"><citetitle>Printing and Display</citetitle></link></para> |
| 73 |
<para><link linkend="arrayOpcodes"><citetitle>Array opcodes</citetitle></link></para> |
| 74 |
</refsect1> |
| 75 |
|
| 76 |
<refsect1> |
| 77 |
|
| 78 |
<title>Credits</title> |
| 79 |
<para>By: &nameeduardo; 2018</para> |
| 80 |
<para>New plugin in version 6.12</para> |
| 81 |
</refsect1> |
| 82 |
|
| 83 |
|
| 84 |
|
| 85 |
|
| 86 |
|
| 87 |
|
| 88 |
</refentry> |