HLASM Language Reference
HLASM Language Reference HLASM Language Reference
Assembler Instructions and Statements Figure 111 (Page 2 of 2). Assembler Statements Instruction Entry Name Entry Operand Entry Assembler Language Statement12 An ordinary symbol, a variable symbol, a sequence symbol, or a combination of variable symbols and other characters that is equivalent to a symbol, or space Any combination of characters (including variable symbols) Notes: 1. Variable symbols may be used to generate assembler language mnemonic operation codes (listed in Chapter 5, “Assembler Instruction Statements” on page 100), except COPY, ICTL, ISEQ, and REPRO. Variable symbols may not be used in the name and operand entries of COPY, ICTL, and ISEQ instructions, except for the COPY instruction in open code, where a variable symbol is allowed for the operand entry. 2. No substitution is done for variables in the line following a REPRO statement. 3. May only be used as part of a macro definition. 4. When the name field of a macro instruction contains a sequence symbol, the sequence symbol is not passed as a name field parameter. It only has meaning as a possible branch target for conditional assembly. 5. Variable symbols appearing in a macro instruction are replaced by their values before the macro instruction is processed. 406 HLASM V1R5 Language Reference
Summary of Constants Appendix B. Summary of Constants Figure 112 and Figure 113 on page 408 summarize the types of assembler constants. Figure 112. Summary of Constants (Part 1 of 2) Constant Type Implicit Length (Bytes) Alignment Length Modifier Range Specified By Address A 4 Fullword .1 to 4 Any expression Doubleword Address AD 8 Doubleword 2 to 8 Any expression Binary B As needed Byte .1 to 256 Binary digits Character C As needed Byte .1 to 256 Characters | ASCII Character CA As needed Byte .1 to 256 Characters | Unicode Character CU As needed Byte 2 to 256 Characters Floating Point Hex D 8 Doubleword .1 to 8 Decimal digits Floating Point Hex DH 8 Doubleword .12 to 8 Decimal digits Floating Point Binary DB 8 Doubleword .12 to 8 Decimal digits Floating Point Hex E 4 Fullword .1 to 8 Decimal digits Floating Point Hex EH 4 Fullword .12 to 8 Decimal digits Floating Point Binary EB 4 Fullword .9 to 8 Decimal digits Fixed Point F 4 Fullword .1 to 8 Decimal digits Doubleword Fixed Point FD 8 Doubleword .1 to 8 Decimal digits Graphic (DBCS) G As needed Byte 2 to 256 DBCS characters Fixed Point H 2 Halfword .1 to 8 Decimal digits Length J 4 Fullword 1 to 4 Class name or external DSECT name Floating Point Hex L 16 Doubleword .1 to 16 Decimal digits Floating Point Hex LH 16 Doubleword .12 to 16 Decimal digits Floating Point Binary LB 16 Doubleword .16 to 16 Decimal digits | Floating Point Hex LQ 16 Quadword .1 to 16 Decimal digits Decimal P As needed Byte .1 to 16 Decimal digits Offset Q 4 Fullword 1 to 4 Symbol naming a DXD or DSECT Address R 4 Fullword 3, 4 Symbol Address S 2 Halfword 2 only One absolute or relocatable expression, or two absolute expressions: exp(exp) Address V 4 Fullword 3, 4 Relocatable symbol Hexadecimal X As needed Byte .1 to 256 Hex digits Address Y 2 Halfword .1 to 2 Any expression Decimal Z As needed Byte .1 to 16 Decimal digits Notes: 1. Bit length specification permitted with absolute expressions only; relocatable A-type constants, 2, 3, or 4 bytes only; relocatable Y-type constants, 2 bytes only. 2. In a DS assembler instruction, C-and-X type constants can have length specification to 65535. 3. The length modifier must be a multiple of 2, and may be up to 65534 in a DS assembler instruction. 4. GOFF only. © Copyright IBM Corp. 1982, 2004 407
- 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'
- Page 420 and 421: 400 HLASM V1R5 Language Reference
- Page 422 and 423: Assembler Instructions and Statemen
- Page 424 and 425: Assembler Instructions and Statemen
- Page 428 and 429: Summary of Constants Figure 113. Su
- Page 430 and 431: Macro and Conditional Assembly Lang
- Page 432 and 433: Macro and Conditional Assembly Lang
- Page 434 and 435: Macro and Conditional Assembly Lang
- Page 436 and 437: Macro and Conditional Assembly Lang
- Page 438 and 439: Macro and Conditional Assembly Lang
- Page 440 and 441: Macro and Conditional Assembly Lang
- Page 442 and 443: Standard Character Set Code Table H
- Page 444 and 445: Standard Character Set Code Table H
- Page 446 and 447: Trademarks AIX BookMaster CICS DFSM
- Page 448 and 449: Bibliography SMP/E Reference, SC28-
- Page 450 and 451: Index A2C (SETC built-in function)
- Page 452 and 453: Index B B-type binary constant 141
- Page 454 and 455: Index conditional assembly instruct
- Page 456 and 457: Index elements of conditional assem
- Page 458 and 459: Index instructions (continued) asse
- Page 460 and 461: Index machine instruction statement
- Page 462 and 463: Index operands (continued) compatib
- Page 464 and 465: Index relative addressing 67 reloca
- Page 466 and 467: Index sublists compatibility with A
- Page 468: Index variable symbols (continued)
- Page 471 and 472: Readers' Comments High Level Assemb
- Page 474: IBM® Program Number: 5696-234 Prin
Summary of Constants<br />
Appendix B. Summary of Constants<br />
Figure 112 and Figure 113 on page 408 summarize the types of assembler<br />
constants.<br />
Figure 112. Summary of Constants (Part 1 of 2)<br />
Constant<br />
Type<br />
Implicit<br />
Length<br />
(Bytes)<br />
Alignment<br />
Length<br />
Modifier<br />
Range<br />
Specified By<br />
Address A 4 Fullword .1 to 4 Any expression<br />
Doubleword Address AD 8 Doubleword 2 to 8 Any expression<br />
Binary B As needed Byte .1 to 256 Binary digits<br />
Character C As needed Byte .1 to 256 Characters<br />
| ASCII Character<br />
CA As needed Byte<br />
.1 to 256 Characters<br />
| Unicode Character CU As needed Byte<br />
2 to 256 Characters<br />
Floating Point Hex D 8 Doubleword .1 to 8 Decimal digits<br />
Floating Point Hex DH 8 Doubleword .12 to 8 Decimal digits<br />
Floating Point Binary DB 8 Doubleword .12 to 8 Decimal digits<br />
Floating Point Hex E 4 Fullword .1 to 8 Decimal digits<br />
Floating Point Hex EH 4 Fullword .12 to 8 Decimal digits<br />
Floating Point Binary EB 4 Fullword .9 to 8 Decimal digits<br />
Fixed Point F 4 Fullword .1 to 8 Decimal digits<br />
Doubleword Fixed<br />
Point<br />
FD 8 Doubleword .1 to 8 Decimal digits<br />
Graphic (DBCS) G As needed Byte 2 to 256 DBCS characters<br />
Fixed Point H 2 Halfword .1 to 8 Decimal digits<br />
Length J 4 Fullword 1 to 4 Class name or external DSECT name<br />
Floating Point Hex L 16 Doubleword .1 to 16 Decimal digits<br />
Floating Point Hex LH 16 Doubleword .12 to 16 Decimal digits<br />
Floating Point Binary LB 16 Doubleword .16 to 16 Decimal digits<br />
| Floating Point Hex LQ 16<br />
Quadword .1 to 16 Decimal digits<br />
Decimal P As needed Byte .1 to 16 Decimal digits<br />
Offset Q 4 Fullword 1 to 4 Symbol naming a DXD or DSECT<br />
Address R 4 Fullword 3, 4 Symbol<br />
Address S 2 Halfword 2 only One absolute or relocatable expression, or<br />
two absolute expressions: exp(exp)<br />
Address V 4 Fullword 3, 4 Relocatable symbol<br />
Hexadecimal X As needed Byte .1 to 256 Hex digits<br />
Address Y 2 Halfword .1 to 2 Any expression<br />
Decimal Z As needed Byte .1 to 16 Decimal digits<br />
Notes:<br />
1. Bit length specification permitted with absolute expressions only; relocatable A-type constants, 2, 3, or 4 bytes only; relocatable<br />
Y-type constants, 2 bytes only.<br />
2. In a DS assembler instruction, C-and-X type constants can have length specification to 65535.<br />
3. The length modifier must be a multiple of 2, and may be up to 65534 in a DS assembler instruction.<br />
4. GOFF only.<br />
© Copyright IBM Corp. 1982, 2004 407