HLASM Language Reference
HLASM Language Reference HLASM Language Reference
Contents Sublists in Operands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 304 Values in Operands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 307 Omitted Operands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 307 Unquoted Operands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 308 Special Characters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 308 Nesting Macro Instruction Definitions . . . . . . . . . . . . . . . . . . . . . . . . . 311 Inner and Outer Macro Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . 312 Levels of Macro Call Nesting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 312 General Rules and Restrictions . . . . . . . . . . . . . . . . . . . . . . . . . . 313 Passing Values through Nesting Levels . . . . . . . . . . . . . . . . . . . . . . 314 System Variable Symbols in Nested Macros . . . . . . . . . . . . . . . . . . . 316 Chapter 9. How to Write Conditional Assembly Instructions . . . . . . . . 318 SET Symbols . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 319 Subscripted SET Symbols . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 319 Scope of SET Symbols . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 319 Scope of Symbolic Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . 319 SET Symbol Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 320 Subscripted SET Symbol Specification . . . . . . . . . . . . . . . . . . . . . . 322 Created SET Symbols . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 323 Data Attributes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 324 | Attributes of Symbols and Expressions . . . . . . . . . . . . . . . . . . . . . . 326 Type Attribute (T') . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 328 Length Attribute (L') . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 332 Scale Attribute (S') . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 333 Integer Attribute (I') . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 334 Count Attribute (K') . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 335 Number Attribute (N') . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 336 Defined Attribute (D') . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 337 Operation Code Attribute (O') . . . . . . . . . . . . . . . . . . . . . . . . . . . 337 Sequence Symbols . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 339 Lookahead . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 340 Open Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 342 Conditional Assembly Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . 343 Declaring SET Symbols . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 343 GBLA, GBLB, and GBLC Instructions . . . . . . . . . . . . . . . . . . . . . . . 344 LCLA, LCLB, and LCLC Instructions . . . . . . . . . . . . . . . . . . . . . . . 345 Assigning Values to SET Symbols . . . . . . . . . . . . . . . . . . . . . . . . . . 347 SETA Instruction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 347 SETB Instruction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 362 SETC Instruction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 369 Extended SET Statements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 387 SETAF Instruction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 388 SETCF Instruction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 389 Branching . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 390 AIF Instruction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 390 AGO Instruction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 392 ACTR Instruction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 394 ANOP Instruction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 395 Chapter 10. MHELP Instruction . . . . . . . . . . . . . . . . . . . . . . . . . . 397 Part 4. Appendixes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 401 viii HLASM V1R5 Language Reference
Contents Appendix A. Assembler Instructions . . . . . . . . . . . . . . . . . . . . . . . 402 Appendix B. Summary of Constants . . . . . . . . . . . . . . . . . . . . . . . 407 Appendix C. Macro and Conditional Assembly Language Summary . . . . 409 Appendix D. Standard Character Set Code Table . . . . . . . . . . . . . . . 421 Notices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 425 Trademarks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 425 Bibliography . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 427 High Level Assembler Publications . . . . . . . . . . . . . . . . . . . . . . . . . . 427 Toolkit Feature Publications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 427 Related Publications (Architecture) . . . . . . . . . . . . . . . . . . . . . . . . . . 427 Related Publications for MVS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 427 Related Publications for VM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 428 Related Publications for VSE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 428 Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 429 Contents ix
- Page 1: High Level Assembler for MVS & VM &
- Page 4 and 5: Note! Before using this information
- Page 6 and 7: Contents Source Module . . . . . .
- Page 8 and 9: Contents Ordinary USING Instruction
- Page 12 and 13: About this Manual This manual descr
- Page 14 and 15: IBM High Level Assembler for MVS &
- Page 16 and 17: | The Internet. You can access IBM
- Page 18 and 19: ▌C▐ The item referred to by ▌
- Page 20 and 21: Miscellany The ASCII translation t
- Page 22 and 23: Part 1. Assembler Language—Struct
- Page 24 and 25: Language Compatibility Language Com
- Page 26 and 27: Assembler Program Assembler Program
- Page 28 and 29: Relationship of Assembler to Operat
- Page 30 and 31: Coding Made Easier Linkage between
- Page 32 and 33: Character Set Compatibility with Ea
- Page 34 and 35: Assembler Language Coding Conventio
- Page 36 and 37: Assembler Language Coding Conventio
- Page 38 and 39: Assembler Language Coding Conventio
- Page 40 and 41: Assembler Language Coding Conventio
- Page 42 and 43: Assembler Language Structure Condit
- Page 44 and 45: Assembler Language Structure Machin
- Page 46 and 47: Assembler Language Structure Condit
- Page 48 and 49: Terms, Literals, and Expressions Te
- Page 50 and 51: Terms, Literals, and Expressions -
- Page 52 and 53: Terms, Literals, and Expressions As
- Page 54 and 55: Terms, Literals, and Expressions Se
- Page 56 and 57: Terms, Literals, and Expressions Fo
- Page 58 and 59: Terms, Literals, and Expressions I
Contents<br />
Sublists in Operands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 304<br />
Values in Operands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 307<br />
Omitted Operands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 307<br />
Unquoted Operands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 308<br />
Special Characters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 308<br />
Nesting Macro Instruction Definitions . . . . . . . . . . . . . . . . . . . . . . . . . 311<br />
Inner and Outer Macro Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . 312<br />
Levels of Macro Call Nesting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 312<br />
General Rules and Restrictions . . . . . . . . . . . . . . . . . . . . . . . . . . 313<br />
Passing Values through Nesting Levels . . . . . . . . . . . . . . . . . . . . . . 314<br />
System Variable Symbols in Nested Macros . . . . . . . . . . . . . . . . . . . 316<br />
Chapter 9. How to Write Conditional Assembly Instructions . . . . . . . . 318<br />
SET Symbols . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 319<br />
Subscripted SET Symbols . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 319<br />
Scope of SET Symbols . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 319<br />
Scope of Symbolic Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . 319<br />
SET Symbol Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 320<br />
Subscripted SET Symbol Specification . . . . . . . . . . . . . . . . . . . . . . 322<br />
Created SET Symbols . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 323<br />
Data Attributes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 324<br />
| Attributes of Symbols and Expressions . . . . . . . . . . . . . . . . . . . . . . 326<br />
Type Attribute (T') . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 328<br />
Length Attribute (L') . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 332<br />
Scale Attribute (S') . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 333<br />
Integer Attribute (I') . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 334<br />
Count Attribute (K') . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 335<br />
Number Attribute (N') . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 336<br />
Defined Attribute (D') . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 337<br />
Operation Code Attribute (O') . . . . . . . . . . . . . . . . . . . . . . . . . . . 337<br />
Sequence Symbols . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 339<br />
Lookahead . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 340<br />
Open Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 342<br />
Conditional Assembly Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . 343<br />
Declaring SET Symbols . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 343<br />
GBLA, GBLB, and GBLC Instructions . . . . . . . . . . . . . . . . . . . . . . . 344<br />
LCLA, LCLB, and LCLC Instructions . . . . . . . . . . . . . . . . . . . . . . . 345<br />
Assigning Values to SET Symbols . . . . . . . . . . . . . . . . . . . . . . . . . . 347<br />
SETA Instruction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 347<br />
SETB Instruction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 362<br />
SETC Instruction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 369<br />
Extended SET Statements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 387<br />
SETAF Instruction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 388<br />
SETCF Instruction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 389<br />
Branching . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 390<br />
AIF Instruction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 390<br />
AGO Instruction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 392<br />
ACTR Instruction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 394<br />
ANOP Instruction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 395<br />
Chapter 10. MHELP Instruction . . . . . . . . . . . . . . . . . . . . . . . . . . 397<br />
Part 4. Appendixes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 401<br />
viii<br />
<strong>HLASM</strong> V1R5 <strong>Language</strong> <strong>Reference</strong>