HLASM Language Reference
HLASM Language Reference HLASM Language Reference
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
- Page 132 and 133: CATTR Instruction Figure 25. AMODE/
- Page 134 and 135: CATTR Instruction | statements for
- Page 136 and 137: CCW1 Instruction data_count is an a
- Page 138 and 139: CEJECT Instruction If symbol is an
- Page 140 and 141: CNOP Instruction Figure 29 (Page 2
- Page 142 and 143: COPY Instruction In the following e
- Page 144 and 145: CSECT Instruction symbol in the nam
- Page 146 and 147: DC Instruction ROUTINE B GAMMA DXD
- Page 148 and 149: DC Instruction duplication_factor c
- Page 150 and 151: DC Instruction Figure 33 (Page 2 of
- Page 152 and 153: DC Instruction With EBCDIC spaces
- Page 154 and 155: DC Instruction Further information
- Page 156 and 157: DC Instruction | Symbols used in su
- Page 158 and 159: DC Instruction The length attribute
- Page 160 and 161: DC Instruction Notes: 1. Don't conf
- Page 162 and 163: DC Instruction—Character Constant
- Page 164 and 165: DC Instruction—Character Constant
- Page 166 and 167: DC Instruction—Graphic Constant r
- Page 168 and 169: DC Instruction—Fixed-Point Consta
- Page 170 and 171: DC Instruction—Fixed-Point Consta
- Page 172 and 173: DC Instruction—Decimal Constants
- Page 174 and 175: DC Instruction—Address Constants
- Page 176 and 177: DC Instruction—Address Constants
- Page 178 and 179: DC Instruction—Offset Constant re
- Page 180 and 181: DC Instruction—Length Constant Le
- Page 184 and 185: DC Instruction—Hexadecimal Floati
- Page 186 and 187: DC Instruction—Hexadecimal Floati
- Page 188 and 189: DC Instruction—Binary Floating-Po
- Page 190 and 191: DC Instruction—Binary Floating-Po
- Page 192 and 193: DROP Instruction DROP Instruction T
- Page 194 and 195: DS Instruction USING DSECTA,14 ALBL
- Page 196 and 197: DS Instruction The size of a storag
- Page 198 and 199: DSECT Instruction DSECT Instruction
- Page 200 and 201: DXD Instruction ASEMBLY2 CSECT USIN
- Page 202 and 203: END Instruction change but no addit
- Page 204 and 205: EQU Instruction EQU Instruction The
- Page 206 and 207: EQU Instruction 5. The length attri
- Page 208 and 209: EXITCTL Instruction sequence_symbol
- Page 210 and 211: ISEQ Instruction must be greater th
- Page 212 and 213: LOCTR Instruction A CSECT , See not
- Page 214 and 215: LTORG Instruction If symbol is an o
- Page 216 and 217: MNOTE Instruction When two literals
- Page 218 and 219: OPSYN Instruction ,ERROR, SEV 1 An
- Page 220 and 221: ORG Instruction AFTER is defined in
- Page 222 and 223: ORG Instruction If you specify mult
- Page 224 and 225: POP Instruction POP Instruction The
- Page 226 and 227: PRINT Instruction Note: If the next
- Page 228 and 229: Process Statement Process Statement
- Page 230 and 231: REPRO Instruction NOPRINT instructs
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>