11.07.2015 Views

HLASM: V1R6 Language Ref

HLASM: V1R6 Language Ref

HLASM: V1R6 Language Ref

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

SETB instructionv A logical expression can contain up to 18 logical operators. The relational andother operators used by the arithmetic and character expressions in relations donot count toward this total.v Up to 255 levels of nested parentheses are allowed.v Absolute ordinary symbols specified in logical expressions must be definedbefore the logical expression is encountered.v The assembler determines the type of a logical relation by the first comparand. Ifthe first comparand is a character expression that begins with a single quotationmark, then the logical relation is a character relation, otherwise the assemblertreats it as an arithmetic relation.┌───────────┐│││Logical¹ ││Expression │││└─────┬─────┘│ Can be any of├─────────────┬─────────────────────────────────────────────────┐ Logical Operators Allowed ┌─────┴─────┐ ┌─────┴─────┬───────────┬───────────┐ ┌───────────┬─────┴─────┐ OR Intersection│ │ │ │ OR │ │ │ │ │ AND Union│ Logical² │ │Logical² │ OR NOT │ Logical │ │ NOT │Logical² │ NOT Negation│ Term │ │Expression │ AND │ Term │ │ │Expression │ XOR Exclusive OR│ │ │ │ AND NOT │ │ │ │ ││ │ │ │ XOR │ │ │ │ ││ │ │ │ XOR NOT │ │ │ │ │└─────┬─────┘ └───────────┴───────────┴───────────┘ └───────────┴───────────┘│ Can be any of├─────────────┬─────────────┬─────────────┬─────────────┬─────────────┬─────────────┐ ┌─────┴─────┐ ┌─────┴─────┐ ┌─────┴─────┐ ┌─────┴─────┐ ┌─────┴─────┐ ┌─────┴─────┐ ┌─────┴─────┐│ │ │ SETB² │ │ │ │ │ │ │ │ Predefined│ │ ││ Logical² │ │ Variable │ │Arithmetic²│ │ 0² │ │ 1² │ │ Absolute │ │ Logical² ││ Relation │ │ Symbol │ │Value │ │ │ │ │ │ Ordinary │ │ Function ││ │ │ │ │ │ │ │ │ │ │ Symbol │ │ │└─────┬─────┘ └───────────┘ └───────────┘ └───────────┘ └───────────┘ └───────────┘ └───────────┘│ Can be any of├─────────────────────────────────────────┐┌─────┴─────┐┌─────┴─────┐│ │ │ ││Arithmetic │ │ Character ││Relation │ │ Relation ││ │ │ │└─────┬─────┘└─────┬─────┘│ │ Relational Operators Allowed Which is Which is┌─────┴─────┬───────────┬───────────┐ ┌─────┴─────┬───────────┬───────────┐ EQ Equal│ │ EQ, NE │ │ │ │ EQ, NE │ │ NE Not equal│Arithmetic │ LE, LT │Arithmetic │ │ Character³│ LE, LT │ Character³│ LE Less than or equal│Comparand │ GE, GT │Comparand │ │ Comparand │ GE, GT │ Comparand │ LT Less than│ │ │ │ │ │ │ │ GE Greater than or equal└─────┬─────┴───────────┴───────────┘ └─────┬─────┴───────────┴───────────┘ GT Greater than││ Which can be Can be any of│├─────────────┬─────────────┬─────────────────┐│ ┌─────┴─────┐ ┌─────┴─────┐ ┌─────┴─────┐ ┌─────┴──────────┐ ┌─────┴─────┐│ │ │ │ │ │ │ Type Attribute │ │Character ││Arithmetic │ │Character │ │ Substring │ │ or Operation │ │Exp. and ││Expression │ │Expression │ │ Notation │ │ Code │ │Substring ││ │ │ │ │ │ │ <strong>Ref</strong>erence⁴ │ │Notation │└───────────┘ └───────────┘ └───────────┘ └────────────────┘ └───────────┘Notes:1. Outermost expression must be enclosed in parentheses in SETB and AIF instructions.2. Optional parentheses around terms and expressions at this level.3. Must be in the range 0 through 1024 characters.4. Must stand alone and not be enclosed in single quotation marks.Figure 41. Defining logical expressions360 <strong>HLASM</strong>: <strong>V1R6</strong> <strong>Language</strong> <strong>Ref</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!