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.

DC Instruction<br />

Further information about these constants is provided in the discussion of the<br />

constants themselves under “Subfield 6: Nominal Value” on page 140.<br />

Figure 35. Type Codes for Constants<br />

Code Constant Type Machine Format<br />

C Character 8-bit code for each character<br />

G Graphic 16-bit code for each character<br />

X Hexadecimal 4-bit code for each hexadecimal digit<br />

B Binary Binary format<br />

F Fixed-point Signed, fixed-point binary format; normally a fullword<br />

H Fixed-point Signed, fixed-point binary format; normally a halfword<br />

E Floating-point Short floating-point format; normally a fullword<br />

D Floating-point Long floating-point format; normally a doubleword<br />

L Floating-point Extended floating-point format; normally two doublewords<br />

P Decimal Packed decimal format<br />

Z Decimal Zoned decimal format<br />

A Address Value of address; normally a fullword<br />

Y Address Value of address; normally a halfword<br />

S Address Base register and displacement value; a halfword<br />

V Address Space reserved for external symbol addresses; normally a<br />

fullword<br />

J Address Space reserved for length of class or DXD; normally a<br />

fullword<br />

Q Address Space reserved for external dummy section offset<br />

R Address Space reserved for PSECT addresses; normally a fullword<br />

The type in conjunction with an optional type extension specification indicates to the<br />

assembler:<br />

1. How to assemble the nominal value(s) specified in subfield 6; that is, which<br />

binary representation or machine format the object code of the constant must<br />

have.<br />

2. At what boundary the assembler aligns the constant, if no length modifier is<br />

present.<br />

3. How much storage the constant occupies, according to the implicit length of the<br />

constant, if no explicit length modifier is present (for details, see “Padding and<br />

Truncation of Values” on page 130).<br />

Subfield 3: Type Extension<br />

The syntax for coding the type extension is shown in the subfield format on page<br />

127.<br />

You may omit the type extension subfield. If specified, the assembler, using this<br />

field in conjunction with the type subfield, determines how to interpret the constant<br />

and translate it into the correct format. The type extension is specified by a<br />

single-letter code as shown in Figure 36.<br />

134 <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!