22.02.2015 Views

HLASM Language Reference

HLASM Language Reference

HLASM Language Reference

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Assembler Program<br />

Assembler Program<br />

The assembler program, also referred to as the assembler, processes the machine,<br />

assembler, and macro instructions you have coded (source statements) in the<br />

assembler language, and produces an object module in machine language.<br />

Basic Functions<br />

Processing involves the translation of source statements into machine language,<br />

assignment of storage locations to instructions and other elements of the program,<br />

and performance of auxiliary assembler functions you have designated. The output<br />

of the assembler program is the object program, a machine language translation of<br />

the source program. The assembler produces a printed listing of the source<br />

statements and object program statements and additional information, such as error<br />

messages, that are useful in analyzing the program. The object program is in the<br />

format required by the linker.<br />

Associated Data<br />

The assembler can produce an associated data file that contains information about<br />

the source program and the assembly environment. The ADATA information<br />

includes information such as:<br />

Data sets used by the assembler<br />

Program source statements<br />

Macros used by the assembler<br />

Program symbols<br />

Program object code<br />

Assembly error messages<br />

Different subsets of this information are needed by various consumers, such as<br />

configuration managers, debuggers, librarians, metrics collectors, and many more.<br />

Controlling the Assembly<br />

You can control the way the assembler produces the output from an assembly,<br />

using assembler options and assembler language instructions.<br />

Assembler options are described in the <strong>HLASM</strong> Programmer's Guide. A subset of<br />

assembler options can be specified in your source program using the *PROCESS<br />

statement described on page 102.<br />

Assembler language instructions are assembler language source statements that<br />

cause the assembler to perform a specific operation. Some assembler language<br />

instructions, such as the DC instruction, generate object code. Assembler<br />

language instructions are categorized as follows:<br />

Assembler Instructions<br />

These include instructions for:<br />

Producing associated data<br />

Assigning base registers<br />

Defining data constants<br />

Controlling listing output<br />

Redefining operation codes<br />

Sectioning and linking programs<br />

Defining symbols<br />

6 <strong>HLASM</strong> V1R5 <strong>Language</strong> <strong>Reference</strong>

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

Saved successfully!

Ooh no, something went wrong!