LMS 2012
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
p11.c
Go to the documentation of this file.
1 
8 UBYTE prg[] = // p11
9 { //
10  PROGRAMHeader(0,2,2), // VersionInfo,NumberOfObjects,GlobalBytes
11  VMTHREADHeader(0,2), // OffsetToInstructions,LocalBytes
12  SUBCALLHeader(0,2), // OffsetToInstructions,LocalBytes
13  //
14  // VMTHREAD1
15  // {
16  opMOVE8_8,LC0(1),LV0(0), // LV0 = 1
17  opCALL,LC0(2),LC0(2),LV0(0),LV0(1), // SUBCALL(2,2,LV0,LV1)
18  opUI_WRITE,LC0(VALUE8),LV0(1), // UI_WRITE(VALUE8,LV1)
19  opUI_WRITE,LC0(PUT_STRING),LCS,'\r', // UI_WRITE(PUT_STRING,"\r\n")
20  '\n',0,
21  opUI_FLUSH, // UI_FLUSH
22  opOBJECT_END, // }
23  //
24  2,IN_8,OUT_8, // SUBCALL2(InDATA8,OutDATA8)
25  // {
26  opUI_WRITE,LC0(VALUE8),LV0(0), // UI_WRITE(VALUE8,LV0)
27  opUI_WRITE,LC0(PUT_STRING),LCS,'\r', // UI_WRITE(PUT_STRING,"\r\n")
28  '\n',0,
29  opUI_FLUSH, // UI_FLUSH
30  opMOVE8_8,LV0(0),LV0(1), // LV1 = 2
31  opRETURN, // }
32  opOBJECT_END, //
33 };
34 
35 /* \endverbatim \ref subpar "Parameter Encoding"
36 */
UBYTE prg[]
Definition: p0.c:1
#define VMTHREADHeader(OffsetToInstructions, LocalBytes)
Definition: bytecodes.h:1573
#define PROGRAMHeader(VersionInfo, NumberOfObjects, GlobalBytes)
Definition: bytecodes.h:1570
#define OUT_8
Definition: bytecodes.h:1651
#define IN_8
Definition: bytecodes.h:1646
#define LCS
Definition: bytecodes.h:1611
#define LC0(v)
Definition: bytecodes.h:1615
#define LV0(i)
Definition: bytecodes.h:1621
unsigned char UBYTE
Basic Type used to symbolise 8 bit unsigned values.
Definition: lmstypes.h:29
#define SUBCALLHeader(OffsetToInstructions, LocalBytes)
Definition: bytecodes.h:1576