bdfs1m0x | Structured Programming Macros |
Use this macro to generate an EX instruction. See ESA/370 Principles of Operation or ESA/390 Principles of Operation for more information
about the EX instruction.
- Note:
- You can also use the #EXEC macro as a conditional expression; see Conditional Expression Format for more information about the syntax of a conditional
expression.
Format
- reg
- is the register to use as the first operand in the EX instruction.
- copcode
- is an operation code starting with C; for example, CLC, CR, and so
on.
- opcode
- is an operation code that sets a condition code but does not start with
C; for example, TM, OC, and so on.
- operand
- is an operand for the instruction, which can be anything that the
assembler language allows for an assembler instruction operand. See
ESA/370 Principles of Operation or ESA/390 Principles of Operation for more information
about assembler instructions and valid operands. Some of the types of
operands include:
- msk
- is the M3 or R3 operand of an RS instruction. See ESA/370 Principles of Operation or ESA/390 Principles of Operation for more information
about the RS instruction.
- Note:
- You must specify the msk with an RS instruction.
Do not specify the msk for a non-RS instruction.
- mnemonic
- is one of the condition-code mnemonics shown in Table 2.
- Note:
- You must specify the mnemonic when you use the #EXEC
macro as a conditional expression. Do not specify the
mnemonic when using the #EXEC macro alone.
Entry Requirements
None.
Return Conditions
Control is returned to the next sequential instruction.
Programming Considerations
- All labels used in the SPM conditional expression can be no more than
32 characters long. Any additional characters are
truncated.
- The register specified for reg is used as the first operand in
the EX instruction. The rest of the expression is the subject
instruction of the EX instruction and the branching condition. See ESA/370 Principles of Operation or ESA/390 Principles of Operation for more information
about the EX instruction.
Examples
- In the following example, the #EXEC macro is used as a conditional
expression for a #IF statement.
#IF #EXEC,R2,TM,FLAGS,X'00',ON
:
* Code to process
:
#EIF
- In the following example, the #EXEC macro is used to process a Move
Character (MVC) instruction.
#EXEC R5,MVC,EBW008(0),EBW008
:
- In the following example, the #EXEC macro is used to process a Compare
Logical Character under Mask (CLM) instruction.
#EXEC R5,CLM,R6,0,0(R14)
:
Related Macros