22.02.2015 Views

HLASM Language Reference

HLASM Language Reference

HLASM Language Reference

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

DC Instruction—Address Constants<br />

DC<br />

DC<br />

DC<br />

A(L'=F'1.23')<br />

A(I'=F'3.45')<br />

A(S'=FS6'7.89)<br />

Notes:<br />

1. No bit-length modifier (see ▌1▐ in Figure 44) is allowed when a relocatable or<br />

complex relocatable expression (see ▌2▐ in Figure 44) is specified. The only<br />

explicit lengths that can be specified with relocatable or complex relocatable<br />

address constants are:<br />

2 through 8 bytes for AD-type constants<br />

2, 3, or 4 bytes for A-type constants<br />

2 bytes for Y-type constants<br />

The linkage editor/binder/loader you use determines which lengths are actually<br />

supported. Please see the appropriate product manual for more information.<br />

For absolute operands, you may specify byte or bit lengths:<br />

byte lengths 1 through 8, or bit lengths .1 through .128, for A-type<br />

constants<br />

byte lengths 1 or 2, or bit lengths .1 through .16, for Y-type constants<br />

2. The value of the location counter reference (*) when specified in an address<br />

constant varies from constant to constant, if any of the following, or a<br />

combination of the following, are specified:<br />

Multiple operands<br />

Multiple nominal values (see ▌3▐ in Figure 44)<br />

A duplication factor (see ▌4▐ in Figure 44)<br />

The location counter is incremented with the length of the previously assembled<br />

constant.<br />

3. When the location counter reference occurs in a literal address constant, the<br />

value of the location counter is the address of the first byte of the instruction.<br />

Note that the behavior of location counter references in A-type address<br />

constants is different from that in S-type address constants (“Address<br />

Constant—S” on page 156).<br />

Figure 44 (Page 1 of 2). A and Y Address Constants<br />

Subfield Value Example Result<br />

1. Duplication factor Allowed A DC 5AL1(−A) ▌4▐ Object code<br />

X'0001020304'<br />

2. Type A and Y<br />

3. Type Extension D permitted for A<br />

type only<br />

| 4. Program type Allowed<br />

5. Modifiers<br />

Implicit length:<br />

(length modifier<br />

not present)<br />

Alignment:<br />

(Length modifier<br />

not present)<br />

A-type: 4 bytes<br />

AD-type: 8 bytes<br />

Y-type: 2 bytes<br />

A-type: fullword<br />

AD-type: doubleword<br />

Y-type: halfword<br />

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