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

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

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.

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

Saved successfully!

Ooh no, something went wrong!