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—Fixed-point constantsTable 26. Fixed-point constants (continued)Subfield Value Example ResultRange for length: 1 to 8(byte length)||||||.1 to .64(bit length)Range for scale: F: −187 to +346H: −187 to +346Range for exponent: −85 to +75 ▌4▐ DC HE+75’2E−73’▌5▐6. Nominal valueRepresented by: Decimaldigits(0 to 9)Enclosed by: Single quotationmarksDoublewordDC FD’−200’ ▌1▐DC FD’U7890123456’FullwordDC FS4’2.25’ ▌2▐DC FS4’U2.25’Halfword:DC H’+200’DC HS4’.25’DC H’U200’DC HS4’U0.25’Exponent allowed: Yes Doubleword:DC FD’2E6’DC FD’U2E6’Fullword:DC F’2E6’ ▌3▐DC F’U2E6’value=2x10²||Number of valuesper operand:MultiplePadding: With sign bits at leftTruncation ofassembled value:At left(error messageissued)Halfword:DC H’2E+1’DC H’U2E+1’In the following example, the DC statement generates a 2-byte field containing anegative constant. Scaling has been specified in order to reserve 6 bits for thefractional portion of the constant.HALFCON DC HS6’−25.46’In the following example, the constant (3.50) is multiplied by 10 to the power −2before being converted to its binary format. The scale modifier reserves 12 bits forthe fractional portion.FULLCON DC HS12’3.50E−2’148 <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!