HLASM Language Reference
HLASM Language Reference HLASM Language Reference
DC Instruction—Offset Constant reserved for the V-type constant; the correct relocated value of the address is inserted into this space by the linkage editor before your object program is loaded. The symbol specified (see ▌1▐ in Figure 46) in the nominal value subfield does not constitute a definition of the symbol for the source module in which the V-type address constant appears. The symbol specified in a V-type constant must not represent external data in an overlay program. Figure 46. V Address Constants Subfield Value Example Result 1. Duplication factor Allowed 2. Type V | 3. Type Extension D | 4. Program type Allowed 5. Modifiers | Implicit length: V-type: 4 bytes (length modifier VD-type: 8 bytes not present) Alignment: V-type: Fullword | (Length modifier VD-type: Doubleword not present) Range for length: V-type: 4 or 3 only | VD-type: 3, 4 or 8 (no bit length) Range for scale: Range for exponent: 6. Nominal value Represented by: Enclosed by: Exponent allowed: Number of values per operand: Padding: Truncation of assembled value: Not allowed Not allowed A single external symbol Parentheses No Multiple None Not applicable VL4(ExtSym) DC V(MODA) ▌1▐ DC V(EXTADR) ▌1▐ In the following example, 12 bytes are reserved, because there are three symbols. The value of each assembled constant is zero until the program is link-edited. VCONST DC V(SORT,MERGE,CALC) 158 HLASM V1R5 Language Reference
DC Instruction—Length Constant Offset Constant—Q Use this constant to reserve storage for the offset into a storage area of an external dummy section, or the offset to a label in a class. The offset is entered into this space by the linker. When the offset is added to the address of an overall block of storage set aside for external dummy sections, it addresses the applicable section. For a description of the use of the Q-type offset constant in combination with an external dummy section, see “External Dummy Sections” on page 57. See also Figure 47 for details. In the following example, to access the external dummy section named VALUE, the value of the constant labeled A is added to the base address of the block of storage allocated for external dummy sections. A DC Q(VALUE) The DXD or DSECT names referenced in the Q-type offset constant need not be previously defined. Figure 47. Q Offset Constants Subfield Value Example Result 1. Duplication factor Allowed 2. Type Q | 3. Type Extension D | 4. Program type Allowed 5. Modifiers Implicit length: Q-type: 4 bytes (length modifier | QD-type: 8 bytes not present) Alignment: Q-type: Fullword | (Length modifier QD-type: Quadword not present) Q(DXDEXT) Range for length: Q-type: 1 to 4 bytes QL2(DXDEXT) | QD-type: 1 to 8 bytes (no bit length) Range for scale: Range for exponent: 6. Nominal value Represented by: Enclosed by: Exponent allowed: Number of values per operand: Padding: Truncation of assembled value: Not allowed Not allowed A DXD or DSECT name (an external symbol) Parentheses No Multiple None Not applicable DC Q(DUMMYEXT) DC Q(DXDEXT) Chapter 5. Assembler Instruction Statements 159
- Page 128 and 129: AINSERT Instruction character_strin
- Page 130 and 131: AMODE Instruction alias_string is t
- 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 180 and 181: DC Instruction—Length Constant Le
- Page 182 and 183: DC Instruction—Hexadecimal Floati
- 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
DC Instruction—Length Constant<br />
Offset Constant—Q<br />
Use this constant to reserve storage for the offset into a storage area of an external<br />
dummy section, or the offset to a label in a class. The offset is entered into this<br />
space by the linker. When the offset is added to the address of an overall block of<br />
storage set aside for external dummy sections, it addresses the applicable section.<br />
For a description of the use of the Q-type offset constant in combination with an<br />
external dummy section, see “External Dummy Sections” on page 57. See also<br />
Figure 47 for details.<br />
In the following example, to access the external dummy section named VALUE, the<br />
value of the constant labeled A is added to the base address of the block of<br />
storage allocated for external dummy sections.<br />
A DC Q(VALUE)<br />
The DXD or DSECT names referenced in the Q-type offset constant need not be<br />
previously defined.<br />
Figure 47. Q Offset Constants<br />
Subfield Value Example Result<br />
1. Duplication factor Allowed<br />
2. Type Q<br />
| 3. Type Extension D<br />
| 4. Program type Allowed<br />
5. Modifiers<br />
Implicit length:<br />
Q-type: 4 bytes<br />
(length modifier<br />
| QD-type: 8 bytes<br />
not present)<br />
Alignment:<br />
Q-type: Fullword<br />
| (Length modifier QD-type: Quadword<br />
not present)<br />
Q(DXDEXT)<br />
Range for length: Q-type: 1 to 4 bytes QL2(DXDEXT)<br />
| QD-type: 1 to 8 bytes<br />
(no bit length)<br />
Range for scale:<br />
Range for exponent:<br />
6. Nominal value<br />
Represented by:<br />
Enclosed by:<br />
Exponent allowed:<br />
Number of values<br />
per operand:<br />
Padding:<br />
Truncation of<br />
assembled value:<br />
Not allowed<br />
Not allowed<br />
A DXD or DSECT<br />
name (an<br />
external symbol)<br />
Parentheses<br />
No<br />
Multiple<br />
None<br />
Not applicable<br />
DC Q(DUMMYEXT)<br />
DC Q(DXDEXT)<br />
Chapter 5. Assembler Instruction Statements 159