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.

CCW and CCW0 Instructions<br />

If several CATTR instructions within a source module have the same class name,<br />

the first occurrence establishes the class and its attributes, and the rest indicate the<br />

continuation of the text for the class. If you specify attributes on subsequent<br />

CATTR instructions having the same class name as a previous CATTR instruction,<br />

the assembler ignores the attributes and issues diagnostic message ASMA191W.<br />

If you specify conflicting attributes on the same instruction, the assembler uses the<br />

last one specified. In the following example, the assembler uses RMODE(ANY):<br />

MYCLASS CATTR RMODE(24),RMODE(ANY)<br />

Syntax Checking Only: If you code a CATTR instruction but don't specify the<br />

GOFF or XOBJECT option, the assembler checks the syntax of the instruction<br />

statement and does not process the attributes.<br />

CCW and CCW0 Instructions<br />

The CCW and CCW0 instructions define and generate an 8-byte, format-0 channel<br />

command word for input/output operations. A format-0 channel command word<br />

allows a 24-bit data address. The CCW and CCW0 instructions have identical<br />

functions. If a control section has not been established, CCW and CCW0 will<br />

initiate an unnamed (private) control section.<br />

►►──┬────────┬──┬─CCW──┬────────────────────────────────────────────►<br />

└─symbol─┘<br />

└─CCW─┘<br />

►──command_code,data_address,flags,data_count──────────────────────►◄<br />

symbol<br />

is one of the following:<br />

An ordinary symbol<br />

A variable symbol that has been assigned a character string with a value<br />

that is valid for an ordinary symbol<br />

A sequence symbol<br />

command_code<br />

is an absolute expression that specifies the command code. This expression's<br />

value is right-justified in byte 0 of the generated channel command word.<br />

data_address<br />

is a relocatable or absolute expression that specifies the address of the data to<br />

operate upon. This value is treated as a 3-byte, A-type address constant. The<br />

value of this expression is right-justified in bytes 1 to 3 of the generated<br />

channel command word.<br />

flags<br />

is an absolute expression that specifies the flags for bits 32 to 37, and zeros for<br />

bits 38 and 39, of the generated channel command word. The value of this<br />

expression is right-justified in byte 4 of the generated channel command word.<br />

Byte 5 is set to zero by the assembler.<br />

Chapter 5. Assembler Instruction Statements 115

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

Saved successfully!

Ooh no, something went wrong!