bdfs1m0z | Structured Programming Macros |
Use this macro group to process specific code based on a set of conditions. The #IF macro group includes the following macros:
See #IF Macro Group Processing for a diagram that shows the processing flow of the #IF macro group.
Format
|
Notes:
See Conditional Expression Format for information about the syntax of a conditional expression.
Entry Requirements
None.
Return Conditions
Control is returned to the next sequential instruction after the #EIF macro statement unless another assembler instruction or macro passes control outside of the #IF structure.
Programming Considerations
#@LBn EQU *
Where:
You can use the PREFIX parameter to change the standard link-label prefix.
#IF (CLI,XSREST,EQ,1) : * Code to process if the field XSREST = 1 : #ELIF (TM,XSFLAG,X'80',ON) : * Code to process if the field XSREST does not equal 1, * but bit 0 of XSFLAG is ON. : #ELSE : * Code to process for all other cases, * XSREST does not equal 1 and bit 0 of XSFLAG is OFF. : #EIF : * Processing continues here after one (and only one) of * the above processes has been performed. :
#IF CR,R2,GE,R3 : * Code to process if R2 >= R3. : #EIF
#IF (CLI,XSREST,EQ,1) : * Code to process if the field XSREST = 1. : #IF CR,R2,GE,R3 : * Code to process if the field XSREST = 1 and R2 >= R3. : #IF CR,R4,LT,R5 : * Code to process if the field XSREST = 1, R2 >= R3, and R4 < R5. : #ELSE : * Code to process if the field XSREST = 1 and R2 >= R3, * but R4 >= R5. : #EIFM 3 : * Processing continues here. :
Related Macros