HLASM Toolkit Feature User's Guide
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


IF macro option A

HLASM Toolkit Feature User's Guide
GC26-8710-10

Read syntax diagramSkip visual syntax diagram
>>-IF--(condition)---------------------------------------------><

Option A tests the previously set condition code. It uses the Extended Branch Mnemonics for the branch instruction or the numeric condition code masks to indicate the condition. Table 1 following the examples shows the mnemonics and their complements.
        IF  (H)  THEN
          Code for F1
        ELSE
          Code for F2
        ENDIF
produces this result:
        IF  (H)  THEN
          BC    15-2,#@LB1
          Code for F1
        ELSE
          BC    15,#@LB3
#@LB1     DC    0H
          Code for F2
        ENDIF
#@LB3     DC    0H
The same example, using a numeric condition code mask, is:
        IF  (2)  THEN
          Code for F1
        ELSE
          Code for F2
        ENDIF

This produces the same code.

Table 1. Mnemonics and complements
Case Condition Mnemonics Meaning Complement
After compare instructions H, GT L, LT E, EQ high, greater than low, less than equal NH, LE, NL, GE, NE
After arithmetic instructions P, M, Z, O plus, minus, zero, overflow NP, NM, NZ, NO
After test under mask instructions O, M, Z ones, mixed, zeros NO, NM, NZ
Notes:
  1. Do not use the mnemonics and complement symbols as program labels.
  2. The mnemonics shown in the table can be in lowercase.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014