HLASM Language Reference

HLASM Language Reference HLASM Language Reference

faculty.cs.niu.edu
from faculty.cs.niu.edu More from this publisher
22.02.2015 Views

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

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>

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

Saved successfully!

Ooh no, something went wrong!