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 />

Notes:<br />

1. Don't confuse the exponent modifier with the exponent that can be specified in<br />

the nominal value subfield of fixed-point and floating-point constants.<br />

The exponent modifier affects each nominal value specified in the operand,<br />

whereas the exponent written as part of the nominal value subfield only affects<br />

the nominal value it follows. If both types of exponent are specified in a DC<br />

operand, their values are added together before the nominal value is converted<br />

to binary form. However, this sum must lie within the permissible range of −85<br />

to +75, unless a type extension is specified.<br />

2. The value of the constant, after any exponents have been applied, must be<br />

contained in the implicitly or explicitly specified length of the constant to be<br />

assembled.<br />

Subfield 6: Nominal Value<br />

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

127.<br />

You must specify the nominal value subfield unless a duplication value of zero is<br />

specified. It defines the value of the constant (or constants) described and affected<br />

by the subfields that precede it. It is this value that is assembled into the internal<br />

binary representation of the constant. Figure 37 shows the formats for specifying<br />

constants.<br />

Figure 37. Specifying Constant Values<br />

Constant<br />

Type<br />

Single<br />

Nominal Value<br />

Multiple<br />

Nominal Value<br />

C 'value' not allowed 142<br />

G '' not allowed 145<br />

B<br />

X<br />

H<br />

F<br />

P<br />

Z<br />

E<br />

D<br />

L<br />

A<br />

Y<br />

S<br />

V<br />

R<br />

Page No.<br />

'value' 'value,value,...value' 141<br />

147<br />

148<br />

148<br />

151<br />

151<br />

161, 167<br />

161, 167<br />

161, 167<br />

(value) (value,value,...value) 153<br />

153<br />

153<br />

153<br />

153<br />

Q (value) (value,value,...value) 159<br />

J (value) (value,value,...value) 160<br />

As the above list shows:<br />

A data constant value (any type except A, Y, S, Q, J, R and V) is enclosed by<br />

single quotation marks.<br />

An address constant value (type A, Y, S, V, R) or an offset constant (type Q) or<br />

a length constant (type J) is enclosed by parentheses.<br />

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