22.02.2015 Views

HLASM Language Reference

HLASM Language Reference

HLASM Language Reference

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

General Instructions<br />

Chapter 4. Machine Instruction Statements<br />

This chapter introduces a sample of the more common instruction formats and<br />

provides general rules for coding them in their symbolic assembler language<br />

format.<br />

For the complete specifications of machine instructions, their object code format,<br />

their coding specifications, and their use of registers and virtual storage areas, see<br />

the applicable Principles of Operation manual for your processor. If your program<br />

requires vector facility instructions, see the applicable Vector Operations manual for<br />

the complete specifications of vector-facility instructions.<br />

At assembly time, the assembler converts the symbolic assembler language<br />

representation of the machine instructions to the corresponding object code. The<br />

computer processes this object code at execution time. Thus, the functions<br />

described in this section can be called execution-time functions.<br />

Also at assembly time, the assembler creates the object code of the data constants<br />

and reserves storage for the areas you specify in your data definition assembler<br />

instructions, such as DC and DS (see Chapter 5, “Assembler Instruction<br />

Statements”). At execution time, the machine instructions can refer to these<br />

constants and areas, but the constants themselves are not normally processed.<br />

As defined in the applicable Principles of Operation manual, there are five<br />

categories of machine instructions:<br />

General instructions<br />

Decimal instructions<br />

Floating-Point instructions<br />

Control instructions<br />

Input/Output operations<br />

Each is discussed in the following sections.<br />

General Instructions<br />

Use general instructions to manipulate data that resides in general registers or in<br />

storage, or that is introduced from the instruction stream. General instructions<br />

include fixed-point, logical, and branching instructions. In addition, they include<br />

unprivileged status-switching instructions. Some general instructions operate on<br />

data that resides in the PSW or the TOD clock.<br />

The general instructions treat data as four types: signed binary integers, unsigned<br />

binary integers, unstructured logical data, and decimal data. Data is treated as<br />

decimal by the conversion, packing, and unpacking instructions.<br />

For further information, see “General Instructions” in the applicable Principles of<br />

Operation manual.<br />

78 © Copyright IBM Corp. 1982, 2004

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

Saved successfully!

Ooh no, something went wrong!