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—Hexadecimal Floating-Point Constants<br />

Figure 51 (Page 3 of 3). Hexadecimal Floating-Point Constants<br />

Subfield Value Example<br />

Number of values<br />

per operand:<br />

Padding:<br />

Truncation of<br />

assembled value:<br />

Multiple<br />

Correct fraction is<br />

extended to the right and<br />

rounded<br />

Only if rounding mode 5; rounded otherwise.<br />

The format of the constant is shown in Figure 52 on page 165.<br />

The value of the constant is represented by two parts:<br />

An exponent portion (see ▌1▐ in Figure 52 on page 165), followed by<br />

A fractional portion (see ▌2▐ in Figure 52)<br />

A sign bit (see ▌3▐ in Figure 52) indicates whether a positive or negative number<br />

has been specified. The number specified must first be converted into a<br />

hexadecimal fraction before it can be assembled into the correct internal format.<br />

The quantity expressed is the product of the fraction (see ▌4▐ in Figure 52) and the<br />

number 16 raised to a power (see ▌5▐ in Figure 52). Figure 52 shows the<br />

external format of the three types of floating-point constants.<br />

Here is the range of values that can be assembled into hexadecimal floating-point<br />

constants:<br />

Type of<br />

Constant<br />

Range of Magnitude (M) of Values<br />

(Positive and Negative)<br />

E 16−65 ≤ M ≤ (1−16−6) x 1663<br />

D 16−65 ≤ M ≤ (1−16−14) x 1663<br />

L 16−65 ≤ M ≤ (1−16−28) x 1663<br />

E, D, L 5.4 x 10−79 ≤ M ≤ 7.2 x 1075 (approximate)<br />

| If the value specified for a particular constant does not lie within these ranges, the<br />

| assembled value then depends on these factors:<br />

With type extension H, overflows assemble to the largest magnitude for the<br />

| specified type, underflows will denormalize the value or return zero, depending<br />

| on the value and rounding mode.<br />

Without type extension H, certain combinations of exponents (modifier and<br />

| nominal value) may produce invalid results (message ASMA071E), and if the<br />

| exponent is too large it is ignored and the nominal value of the constant<br />

| preceding the exponent is assembled instead.<br />

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