Bound program access |
---|
|
The following information is subject to change from release to release. Use it with caution and be prepared to adjust for changes with each new release.
Note |
---|
It is recommended that you use the MATACTEX2 instruction which supports 8-byte activation marks. 4-byte marks can wrap and produce unexpected results. |
This instruction returns the address of an export identified by name or export identifier from a specified program activation. The type of the export item, either data or procedure, is also returned. If the item is not found, an indicator is returned via the export type operand; no exception is signaled in this case.
Operands are as follows,
0 = | reserved |
1 = | by export ID. The item is identified by export identifier (or export ID.) The number operand specifies the export ID of the item. An export ID is the ordinal position, starting from 1, of the item in the bound service program's export list. |
2 = | by name. The item is identified by name. The name operand provides the symbolic name of the item. The length of the name is specified by the number operand. |
>2 = | reserved |
Use of a reserved value causes a scalar value invalid (hex 3203) exception to be signaled.
The thread must have execute authority to the program specified by the activation mark in order to obtain the address of an exported item. In addition, a user state program may only materialize data exports from activations within the same activation group. An attempt to materialize a data export from another activation group will result in a value of 3 for export type and binary 0 being returned in the pointer operand. A system state program may materialize data exports from any activation.
06 Addressing
08 Argument/Parameter
10 Damage Encountered
1C Machine-Dependent
20 Machine Support
22 Object Access
24 Pointer Specification
2C Program Execution
2E Resource Control Limit
32 Scalar Specification
36 Space Management
44 Protection Violation