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

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

Contents<br />

Appendix A. Assembler Instructions . . . . . . . . . . . . . . . . . . . . . . . 402<br />

Appendix B. Summary of Constants . . . . . . . . . . . . . . . . . . . . . . . 407<br />

Appendix C. Macro and Conditional Assembly <strong>Language</strong> Summary . . . . 409<br />

Appendix D. Standard Character Set Code Table . . . . . . . . . . . . . . . 421<br />

Notices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 425<br />

Trademarks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 425<br />

Bibliography . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 427<br />

High Level Assembler Publications . . . . . . . . . . . . . . . . . . . . . . . . . . 427<br />

Toolkit Feature Publications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 427<br />

Related Publications (Architecture) . . . . . . . . . . . . . . . . . . . . . . . . . . 427<br />

Related Publications for MVS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 427<br />

Related Publications for VM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 428<br />

Related Publications for VSE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 428<br />

Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 429<br />

Contents<br />

ix

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

Saved successfully!

Ooh no, something went wrong!