HLASM Language Reference
HLASM Language Reference HLASM Language Reference
SETA Instruction | The logical-expression format encloses the function and operands in | parentheses. In the unary format, the function is followed by the one operand. | In the binary format, the function is placed between the two operands. For | both unary and binary formats, the function is separated from the operand or | operands by spaces. | Logical-expression unary format | ►►──(──built-in function──operand──)───────────────────────────►◄ | Logical-expression binary format | ►►──(──operand──built-in function──operand──)──────────────────►◄ | (A OR B) and (&J SLL 2) are examples of binary logical-expression format | functions, and (NOT C) and (SIGNED &J) are examples of unary | logical-expression format functions. | The function-invocation format has the function first, followed by one or more | operands in parentheses. | Function-invocation format | ►►──built-in function(operand─┬──────────────── ┬─) ─────────────►◄ | │ ┌ ────────────┐ │ | └── ─,──operand─┴─┘ | FIND('abcde','d') is an example of a function-invocation format. (The | equivalent logical-expression format is ('abcde' FIND 'd').) | Spaces are not allowed between the arguments of functions in | function-invocation format. | In either format, the operand is an expression of the type expected by the built-in | function. (The particular details of the number of operands and the operand type | are provided with the information for each built-in function.) | Some functions are available in one format, some are available in both. Figure 99, | which provides a summary of all the built-in functions, shows the forms in which a | function is available. | Figure 99 (Page 1 of 3). Summary of Built-In Functions | Function Type L-E F-I Result Operands Page | A2B Representation conversion √ C A 374 | A2C Representation conversion √ C A 375 | A2D Representation conversion √ C A 375 | A2X Representation conversion √ C A 375 | AND Logical √ A A 353 | AND Logical √ B B 365 | AND NOT Logical √ B B 365 | B2A Representation conversion √ A C 353 350 HLASM V1R5 Language Reference
SETA Instruction | Figure 99 (Page 2 of 3). Summary of Built-In Functions | Function Type L-E F-I Result Operands Page | B2C Representation conversion √ C C 375 | B2D Representation conversion √ C C 376 | B2X Representation conversion √ C C 376 | BYTE Representation conversion √ √ C A 376 | C2A Representation conversion √ A C 353 | C2B Representation conversion √ C C 377 | C2D Representation conversion √ C C 377 | C2X Representation conversion √ C C 377 | D2A Representation conversion √ A C 354 | D2B Representation conversion √ C C 377 | D2C Representation conversion √ C C 378 | D2X Representation conversion √ C C 378 | DCLEN String manipulation √ A C 354 | DCVAL String manipulation √ C C 378 | DEQUOTE String manipulation √ C C 379 | DOUBLE String manipulation √ √ C C 379 | FIND String scanning √ √ A C 355 | INDEX String scanning √ √ A C 355 | ISBIN Validity checking √ B C 365 | ISDEC Validity checking √ B C 366 | ISHEX Validity checking √ B C 366 | ISSYM Validity checking √ B C 366 | LOWER String manipulation √ √ C C 379 | NOT Logical √ A A 356 | NOT Logical √ B B 366 | OR Logical √ A A 356 | OR Logical √ B B 366 | OR NOT Logical √ B B 367 | SIGNED Representation conversion √ √ C A 380 | SLA Shift √ A A 356 | SLL Shift √ A A 356 | SRA Shift √ A A 357 | SRL Shift √ A A 357 | SYSATTRA Information retrieval √ C C 380 | SYSATTRP Information retrieval √ C C 380 | UPPER String manipulation √ √ C C 380 | X2A Representation conversion √ A C 358 | X2B Representation conversion √ C C 381 Chapter 9. How to Write Conditional Assembly Instructions 351
- Page 320 and 321: Macro Instruction Format Operand En
- Page 322 and 323: Macro Instruction Format When you n
- Page 324 and 325: Sublists in Operands the order in w
- Page 326 and 327: Sublists in Operands &SYSLIST( n,m)
- Page 328 and 329: Values in Operands Notes: 1. Spaces
- Page 330 and 331: Values in Operands Parentheses In m
- Page 332 and 333: Inner and Outer Macro Instructions
- Page 334 and 335: Levels of Macro Call Nesting When t
- Page 336 and 337: Levels of Macro Call Nesting System
- Page 338 and 339: How to Write Conditional Assembly I
- Page 340 and 341: SET Symbols SET Symbol Specificatio
- Page 342 and 343: SET Symbols Figure 86 (Page 3 of 3)
- Page 344 and 345: Data Attributes this example indica
- Page 346 and 347: Data Attributes variable_symbol is
- Page 348 and 349: Data Attributes The value of an att
- Page 350 and 351: Data Attributes The following attri
- Page 352 and 353: Data Attributes Assembler gives a t
- Page 354 and 355: Data Attributes The scale attribute
- Page 356 and 357: Data Attributes Number Attribute (N
- Page 358 and 359: Data Attributes The operation code
- Page 360 and 361: Lookahead MACRO &NAME MOVE &TO,&FRO
- Page 362 and 363: Open Code Sequence Symbols The cond
- Page 364 and 365: GBLA, GBLB, and GBLC Instructions G
- Page 366 and 367: LCLA, LCLB, and LCLC Instructions s
- Page 368 and 369: SETA Instruction expression is an a
- Page 372 and 373: SETA Instruction | Figure 99 (Page
- Page 374 and 375: SETA Instruction | The result of C2
- Page 376 and 377: SETA Instruction NOT Format: Logica
- Page 378 and 379: SETA Instruction | X2A Name Operati
- Page 380 and 381: SETA Instruction In evaluating the
- Page 382 and 383: SETB Instruction Any expression tha
- Page 384 and 385: SETB Instruction ┌─────
- Page 386 and 387: SETB Instruction | ISDEC | Format:
- Page 388 and 389: SETB Instruction The two comparands
- Page 390 and 391: SETC Instruction Notes: 1. The asse
- Page 392 and 393: Figure 103. Substring Notation in C
- Page 394 and 395: Loc Object Code Addr1 Addr2 Stmt So
- Page 396 and 397: | B2C('111111') has value '3' | B2C
- Page 398 and 399: | Output: D2B('decstring') converts
- Page 400 and 401: SIGNED Format: Logical-expression,
- Page 402 and 403: | X2D('') has value '+' | X2D('91')
- Page 404 and 405: Concatenation of strings containing
- Page 406 and 407: MACRO &NAME MOVE &TO,&FROM LCLC &PR
- Page 408 and 409: SETAF Instruction Alternative State
- Page 410 and 411: Branching Branching You can control
- Page 412 and 413: AGO Instruction The extended AIF in
- Page 414 and 415: ACTR Instruction AGOB—Synonym of
- Page 416 and 417: ANOP Instruction statement processe
- Page 418 and 419: MHELP Instruction MHELP B'10000000'
SETA Instruction<br />
| The logical-expression format encloses the function and operands in<br />
| parentheses. In the unary format, the function is followed by the one operand.<br />
| In the binary format, the function is placed between the two operands. For<br />
| both unary and binary formats, the function is separated from the operand or<br />
| operands by spaces.<br />
|<br />
Logical-expression unary format<br />
| ►►──(──built-in function──operand──)───────────────────────────►◄<br />
|<br />
Logical-expression binary format<br />
| ►►──(──operand──built-in function──operand──)──────────────────►◄<br />
| (A OR B) and (&J SLL 2) are examples of binary logical-expression format<br />
| functions, and (NOT C) and (SIGNED &J) are examples of unary<br />
| logical-expression format functions.<br />
| The function-invocation format has the function first, followed by one or more<br />
| operands in parentheses.<br />
|<br />
Function-invocation format<br />
| ►►──built-in function(operand─┬────────────────<br />
┬─) ─────────────►◄<br />
| │ ┌<br />
────────────┐<br />
│<br />
| └── ─,──operand─┴─┘<br />
| FIND('abcde','d') is an example of a function-invocation format. (The<br />
| equivalent logical-expression format is ('abcde' FIND 'd').)<br />
| Spaces are not allowed between the arguments of functions in<br />
| function-invocation format.<br />
| In either format, the operand is an expression of the type expected by the built-in<br />
| function. (The particular details of the number of operands and the operand type<br />
| are provided with the information for each built-in function.)<br />
| Some functions are available in one format, some are available in both. Figure 99,<br />
| which provides a summary of all the built-in functions, shows the forms in which a<br />
| function is available.<br />
| Figure 99 (Page 1 of 3). Summary of Built-In Functions<br />
| Function Type<br />
L-E F-I Result Operands Page<br />
| A2B Representation conversion<br />
√ C A 374<br />
| A2C Representation conversion<br />
√ C A 375<br />
| A2D Representation conversion<br />
√ C A 375<br />
| A2X Representation conversion<br />
√ C A 375<br />
| AND Logical<br />
√<br />
A<br />
A 353<br />
| AND Logical<br />
√<br />
B<br />
B 365<br />
| AND NOT Logical<br />
√<br />
B<br />
B 365<br />
| B2A Representation conversion<br />
√ A C 353<br />
350 <strong>HLASM</strong> V1R5 <strong>Language</strong> <strong>Reference</strong>