HLASM Language Reference

HLASM Language Reference HLASM Language Reference

faculty.cs.niu.edu
from faculty.cs.niu.edu More from this publisher
22.02.2015 Views

DC Instruction—Hexadecimal Floating-Point Constants ▌3▐ in Figure 51). If a sign is not specified for either the number or exponent, a plus sign is assumed. If you specify the 'H' type extension you can also specify a rounding mode that is used when the nominal value is converted from decimal to its hexadecimal form. The syntax for nominal values (including the binary floating-point constants) is shown in Figure 53 on page 168. The valid rounding mode values are: 1 Round by adding one in the first lost bit position 4 Unbiased round to nearest, with tie-breaking rule 5 Round towards zero (that is, truncate) 6 Round up towards the maximum positive value 7 Round down towards the minimum negative value Figure 50. Rounding Mode Values See ▌4▐ in Figure 51. The exponent must lie within the permissible range. If an exponent modifier is also specified, the algebraic sum of the exponent and the exponent modifier must lie within the permissible range. Figure 51 (Page 1 of 3). Hexadecimal Floating-Point Constants Subfield Value Example 1. Duplication factor Allowed 2. Type E, D, and L | 3. Type Extension Omitted or H or Q | 4. Program type Allowed 5. Modifiers Implicit length: (length modifier not present) E-type: 4 bytes D-type: 8 bytes L-type: 16 bytes Alignment: E-type: Fullword (Length modifier D-type: Doubleword not present) L-type: Doubleword | LQ-type: Quadword 162 HLASM V1R5 Language Reference

DC Instruction—Hexadecimal Floating-Point Constants Figure 51 (Page 2 of 3). Hexadecimal Floating-Point Constants Subfield Value Example Range for length: E-type: 1 to 8 (byte length) .1 to .64 (bit length) EH-type: .12 to .64 (bit length) D-type: 1 to 8 (byte length) .1 to .64 (bit length) DH-type: .12 to .64 (bit length) L-type: 1 to 16 (byte length) .1 to .128 (bit length) LH-type: .12 to .128 (bit length) | LQ-type: | .12 to .128 (bit length) Range for scale: E-type: 0 to 14 D-type: 0 to 14 L-type: 0 to 28 Range for exponent: −85 to +75 6. Nominal value Represented by: Decimal digits E-type: DC E'+525' ▌1▐ DC E'5.25' ▌2▐ Enclosed by: Single quotation marks D-type: DC D'−525' ▌1▐ DC D'+.1' ▌2▐ L-type: DC L'525' DC L'3.414' ▌2▐ Exponent allowed: Yes E-type: DC E'1E+6' ▌3▐ D-type: DC D'−2.5E1' ▌3▐ Rounding mode allowed if type extension specified: Yes (see Figure 50 for values) L-type: DC L'3.712E−3' ▌3▐ E-type: DC EH'1E+6R1' ▌4▐ D-type: DC DH'−2.5E1R4' ▌4▐ L-type: DC LH'3.712E−3R5' ▌4▐ Chapter 5. Assembler Instruction Statements 163

DC Instruction—Hexadecimal Floating-Point Constants<br />

▌3▐ in Figure 51). If a sign is not specified for either the number or exponent, a<br />

plus sign is assumed. If you specify the 'H' type extension you can also specify a<br />

rounding mode that is used when the nominal value is converted from decimal to its<br />

hexadecimal form. The syntax for nominal values (including the binary<br />

floating-point constants) is shown in Figure 53 on page 168. The valid rounding<br />

mode values are:<br />

1 Round by adding one in the first lost bit position<br />

4 Unbiased round to nearest, with tie-breaking rule<br />

5 Round towards zero (that is, truncate)<br />

6 Round up towards the maximum positive value<br />

7 Round down towards the minimum negative value<br />

Figure 50. Rounding Mode Values<br />

See ▌4▐ in Figure 51.<br />

The exponent must lie within the permissible range. If an exponent modifier is also<br />

specified, the algebraic sum of the exponent and the exponent modifier must lie<br />

within the permissible range.<br />

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

Subfield Value Example<br />

1. Duplication factor Allowed<br />

2. Type E, D, and L<br />

| 3. Type Extension<br />

Omitted or H or Q<br />

| 4. Program type<br />

Allowed<br />

5. Modifiers<br />

Implicit length:<br />

(length modifier<br />

not present)<br />

E-type: 4 bytes<br />

D-type: 8 bytes<br />

L-type: 16 bytes<br />

Alignment:<br />

E-type: Fullword<br />

(Length modifier<br />

D-type: Doubleword<br />

not present)<br />

L-type: Doubleword<br />

| LQ-type: Quadword<br />

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