HLASM Language Reference
HLASM Language Reference HLASM Language Reference
Note! Before using this information and the product it supports, be sure to read the general information under “Notices” on page 425. Fifth Edition (June 2004) This edition applies to IBM High Level Assembler for MVS & VM & VSE, Release 5, Program Number 5696-234 and to any subsequent releases until otherwise indicated in new editions. Make sure you are using the correct edition for the level of the product. Order publications through your IBM representative or the IBM branch office serving your locality. Publications are not stocked at the address below. A form for reader's comments is provided at the back of this publication. If the form has been removed, address your comments to: IBM Corporation J87/D325 555 Bailey Avenue SAN JOSE, CA 95141-1003 United States of America When you send information to IBM, you grant IBM a nonexclusive right to use or distribute the information in any way it believes appropriate without incurring any obligation to you. © Copyright International Business Machines Corporation 1982, 2004. All rights reserved. US Government Users Restricted Rights – Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
Contents Contents About this Manual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . x Who Should Use this Manual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . x Programming Interface Information . . . . . . . . . . . . . . . . . . . . . . . . . . . x Organization of this Manual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xi IBM High Level Assembler for MVS & VM & VSE Publications . . . . . . . . . . . xii Publications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xii Softcopy Publications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiii The High Level Assembler web site . . . . . . . . . . . . . . . . . . . . . . . . xiii | Using LookAt to look up Message Explanations . . . . . . . . . . . . . . . . . xiii Related Publications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiv Syntax Notation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiv Double-Byte Character Set Notation . . . . . . . . . . . . . . . . . . . . . . . . . xvi Summary of Changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xvii Part 1. Assembler Language—Structure and Concepts . . . . . . . . . . . . . . . . . . . . 1 Chapter 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 Language Compatibility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 Assembler Language . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 Assembler Program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 Relationship of Assembler to Operating System . . . . . . . . . . . . . . . . . . . 8 Coding Made Easier . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 Chapter 2. Coding and Structure . . . . . . . . . . . . . . . . . . . . . . . . . 11 Character Set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 Standard Character Set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 Double-Byte Character Set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 Translation Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 Assembler Language Coding Conventions . . . . . . . . . . . . . . . . . . . . . 14 Field Boundaries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 Continuation Lines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 Blank Lines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 Comment Statement Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 Instruction Statement Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 Assembler Language Structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 Overview of Assembler Language Structure . . . . . . . . . . . . . . . . . . . 23 Machine Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 Assembler Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 Conditional Assembly Instructions . . . . . . . . . . . . . . . . . . . . . . . . . 26 Macro Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 Terms, Literals, and Expressions . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 Terms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 Literals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 Expressions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 | Chapter 3. Program Structures and Addressing . . . . . . . . . . . . . . . . 50 | Object Program Structures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 Source Program Structures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 © Copyright IBM Corp. 1982, 2004 iii
- Page 1: High Level Assembler for MVS & VM &
- Page 6 and 7: Contents Source Module . . . . . .
- Page 8 and 9: Contents Ordinary USING Instruction
- Page 10 and 11: Contents Sublists in Operands . . .
- 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
Note!<br />
Before using this information and the product it supports, be sure to read the general information under<br />
“Notices” on page 425.<br />
Fifth Edition (June 2004)<br />
This edition applies to IBM High Level Assembler for MVS & VM & VSE, Release 5, Program Number 5696-234 and to any<br />
subsequent releases until otherwise indicated in new editions. Make sure you are using the correct edition for the level of the<br />
product.<br />
Order publications through your IBM representative or the IBM branch office serving your locality. Publications are not stocked at the<br />
address below.<br />
A form for reader's comments is provided at the back of this publication. If the form has been removed, address your comments to:<br />
IBM Corporation<br />
J87/D325<br />
555 Bailey Avenue<br />
SAN JOSE, CA 95141-1003<br />
United States of America<br />
When you send information to IBM, you grant IBM a nonexclusive right to use or distribute the information in any way it believes<br />
appropriate without incurring any obligation to you.<br />
© Copyright International Business Machines Corporation 1982, 2004. All rights reserved.<br />
US Government Users Restricted Rights – Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.