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.

DC Instruction<br />

| Symbols used in subfield 4 need not be previously defined, except in literals. For<br />

| example:<br />

| SYM DC FP(Rate5)'35.92'<br />

| Rate5 EQU 5<br />

| All expressions in program type must be evaluatable when the DC is processed.<br />

| If program type is omitted, the assembler assigns a null to the program type, and<br />

| querying the value using the SYSATTRP build-in function returns a null value.<br />

Subfield 5: Modifier<br />

The syntax for coding the modifier is shown in the subfield format on page 127.<br />

You may omit the modifier subfield. Modifiers describe the length in bits or bytes<br />

you want for a constant (in contrast to an implied length), and the scaling and<br />

exponent for the constant.<br />

The three modifiers are:<br />

The length modifier (L), that explicitly defines the length in bytes you want for a<br />

constant. For example:<br />

LENGTH DC XL1'FF'<br />

The scale modifier (S), that is only used with the fixed-point or floating-point<br />

constants (for details, see “Scale Modifier” on page 138). For example:<br />

SCALE DC FS8'35.92'<br />

The exponent modifier (E), that is only used with fixed-point or floating-point<br />

constants, and indicates the power of 10 by which the constant is to be<br />

multiplied before conversion to its internal binary format. For example:<br />

EXPON DC EE3'3.414'<br />

If multiple modifiers are used, they must appear in this sequence: length, scale, and<br />

exponent. For example:<br />

ALL3 DC DL7S3E5'2.7182'<br />

Symbols used in subfield 5 need not be previously defined, except in literals. For<br />

example:<br />

SYM DC FS(X)'35.92'<br />

X EQU 7<br />

Length Modifier<br />

The length modifier indicates the number of bytes of storage into which the<br />

constant is to be assembled. It is written as Ln, where n is either a decimal<br />

self-defining term or an absolute expression enclosed by parentheses. It must<br />

have a positive value.<br />

When the length modifier is specified:<br />

Its value determines the number of bytes of storage allocated to a constant. It<br />

therefore determines whether the nominal value of a constant must be padded<br />

or truncated to fit into the space allocated (see “Padding and Truncation of<br />

Values” on page 130).<br />

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