11.07.2015 Views

HLASM: V1R6 Language Ref

HLASM: V1R6 Language Ref

HLASM: V1R6 Language Ref

SHOW MORE
SHOW LESS
  • No tags were found...

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 constantBinary constant—BThe binary constant specifies the precise bit pattern assembled into storage. Eachbinary constant is assembled into the integral number of bytes (see ▌1▐ in Table 22)required to contain the bits specified, unless a bit-length modifier is specified.The following example shows the coding used to designate a binary constant. BCONhas a length attribute of 1.BCON DC B’11011101’BTRUNC DC BL1’100100011’BPAD DC BL1’101’BFOUR DC B’1111 0100 1111 0100’BTRUNC assembles with the leftmost bit truncated, as follows:00100011BPAD assembles with five zeros as padding, as follows:00000101Table 22. Binary constantsSubfield Value Example Result1. Duplication factor Allowed2. Type B3. Type Extension Not Allowed4. Program type Allowed5. ModifiersImplicit length:(length modifiernot present)Alignment:As needed B DC B’10101111’C DC B’101’ByteRange for length: 1 to 256(byte length).1 to .2048(bit length)Range for scale: Not allowedRange for exponent: Not allowed6. Nominal valueRepresented by: Binary digits(0 or 1)Enclosed by: Single quotationmarksExponent allowed: NoNumber of valuesper operand:MultiplePadding: With zeros at leftTruncation ofassembled value:At leftL'B = 1 ▌1▐L'C = 1 ▌1▐Character constant—CThe character constant specifies character strings, such as error messages,identifiers, or other text, that the assembler converts into binary representations. If140 <strong>HLASM</strong>: <strong>V1R6</strong> <strong>Language</strong> <strong>Ref</strong>

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

Saved successfully!

Ooh no, something went wrong!