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—Binary Floating-Point Special Values<br />

Floating-Point Special Values<br />

For special values, the syntax of the DC statement is:<br />

►►──DC──┬────────────┬──┬─E─┬──┬─B─┬──┬──────────────┬──────────────►<br />

| └─dup_factor─ ┘ ├ ─D─ ┤ └ ─H─ ┘ └─program_type─┘<br />

└─L─┘<br />

►──┬─────────────────┬──┤ nominal_value ├──────────────────────────►◄<br />

└─length_modifier─┘<br />

nominal_value (type extension B):<br />

┌─ + ─┐<br />

├──'──┼─────┼──┬─(SNAN)─┬──'────────────────────────────────────────┤<br />

└─ - ─┘<br />

├─(QNAN)─┤<br />

├─(NAN)──┤<br />

├─(INF)──┤<br />

├─(MAX)──┤<br />

├─(MIN)──┤<br />

└─(DMIN)─┘<br />

nominal_value (type extension H):<br />

┌─ + ─┐<br />

├──'──┼─────┼──┬─(MAX)──┬──'────────────────────────────────────────┤<br />

└─ - ─┘<br />

├─(MIN)──┤<br />

└─(DMIN)─┘<br />

dup_factor<br />

causes the constant to be generated the number of times indicated by the<br />

factor.<br />

type<br />

indicates that the constant is either short, long or extended floating point.<br />

type extension<br />

the type of conversion required to assemble the constant.<br />

| program_type<br />

| assign a programmer determined 32-bit value to the symbol naming the DC<br />

| instruction, if a symbol was present.<br />

length_modifier<br />

describes the length in bytes or bits into which the constant is to be assembled.<br />

For NANs and INF the minimum length in bits of the constant is:<br />

11 Short floating-point constant<br />

14 Long floating-point constant<br />

18 Extended floating-point constant<br />

This minimum length allows for the sign, exponent and two fraction bits.<br />

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