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<br />

Figure 34. Alignment of Constants<br />

Type of<br />

constant<br />

Implicit<br />

Boundary<br />

Alignment<br />

Examples<br />

B byte DC B'111' byte<br />

C<br />

CU<br />

byte<br />

byte<br />

DC C'Character string'<br />

DC CU'Character string'<br />

Boundary<br />

Alignment<br />

byte<br />

byte<br />

G byte DC G' byte<br />

X byte DC X'22221222' byte<br />

H<br />

F<br />

FD<br />

P<br />

Z<br />

halfword<br />

fullword<br />

doubleword<br />

byte<br />

byte<br />

DC H'25'<br />

DC HL3'25'<br />

DC F'225'<br />

DC FL7'225'<br />

DC FD'225'<br />

DC P'2934'<br />

DC Z'1235'<br />

DC ZL2'1235'<br />

E<br />

D<br />

L<br />

fullword<br />

doubleword<br />

doubleword<br />

DC E'1.25'<br />

DC EL5'1.25'<br />

DC 8D'95'<br />

DC 8DL7'95'<br />

DC L'2.57E65'<br />

| LQ<br />

quadword DC LQ'.1'<br />

Y<br />

A<br />

AD<br />

S<br />

| VD<br />

J<br />

| JD<br />

Q<br />

| QD<br />

R<br />

| RD<br />

V<br />

halfword<br />

fullword<br />

doubleword<br />

halfword<br />

fullword<br />

doubleword<br />

fullword<br />

doubleword<br />

fullword<br />

doubleword<br />

fullword<br />

doubleword<br />

DC Y(HERE)<br />

DC AL1(THERE)<br />

DC AD(WHERE)<br />

DC S(LABEL)<br />

DC SL2(LABEL)<br />

DC V(EXTERNAL)<br />

DC VL3(EXTERNAL)<br />

DC VD(BIGOTHER)<br />

DC J(CLASS)<br />

DC JD(LARGECLASS)<br />

DC QL1(DUMMY)<br />

DC QD(BIGDUMMY)<br />

DC R(APSECT)<br />

DC RD(BPSECT)<br />

Note:<br />

1. Depends on whether or not an explicit length is specified in the constant.<br />

halfword<br />

byte<br />

fullword<br />

byte<br />

doubleword<br />

byte<br />

byte<br />

byte<br />

fullword<br />

byte<br />

doubleword<br />

byte<br />

doubleword<br />

quadword<br />

halfword<br />

byte<br />

doubleword<br />

halfword<br />

byte<br />

fullword<br />

byte<br />

doubleword<br />

fullword<br />

doubleword<br />

byte<br />

doubleword<br />

fullword<br />

doubleword<br />

The padding and truncation rules discussed below apply to single nominal values.<br />

Padding<br />

If more space is specified than is needed to accommodate the binary<br />

representation of the nominal value, the extra space is padded:<br />

With binary zeros on the left for the binary (B), hexadecimal (X), fixed-point<br />

(H,F), packed decimal (P), and all address (A,Y,S,V,J,Q,R) constants<br />

With sign extension for constants that support sign extension of the nominal<br />

value (H, F, Y, A), as described in Figure 42 on page 149.<br />

With EBCDIC zeros on the left (X'F0') for the zoned decimal (Z) constants<br />

Chapter 5. Assembler Instruction Statements 131

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!