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—Binary Constant<br />

To specify two or more values in the subfield, the values must be separated by<br />

commas, and the whole sequence of values must be enclosed by the correct<br />

delimiters; that is, single quotation marks or parentheses.<br />

Multiple values are not permitted for character constants.<br />

Spaces are allowed and ignored in nominal values for the quoted constant types<br />

(BDEFHLPXZ). Spaces are significant for C and G constant types.<br />

How nominal values are specified and interpreted by the assembler is explained in<br />

each of the subsections that follow. There is a subsection for each of the following<br />

types of constant:<br />

Binary<br />

Character<br />

Graphic<br />

Hexadecimal<br />

Fixed-Point<br />

Decimal<br />

Packed Decimal<br />

Zoned Decimal<br />

Address<br />

Floating-Point<br />

Literal constants are described on page 171.<br />

Binary Constant—B<br />

The binary constant specifies the precise bit pattern assembled into storage. Each<br />

binary constant is assembled into the integral number of bytes (see ▌1▐ in<br />

Figure 38) required to contain the bits specified, unless a bit-length modifier is<br />

specified.<br />

The following example shows the coding used to designate a binary constant. BCON<br />

has a length attribute of 1.<br />

BCON DC B'111111'<br />

BTRUNC DC BL1'1111'<br />

BPAD DC BL1'11'<br />

BFOUR DC B'1111 1 1111 1'<br />

BTRUNC assembles with the leftmost bit truncated, as follows:<br />

111<br />

BPAD assembles with five zeros as padding, as follows:<br />

11<br />

Figure 38 (Page 1 of 2). Binary Constants<br />

Subfield Value Example Result<br />

1. Duplication factor Allowed<br />

2. Type B<br />

3. Type Extension Not Allowed<br />

| 4. Program type Allowed<br />

Chapter 5. Assembler Instruction Statements 141

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

Saved successfully!

Ooh no, something went wrong!