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—Fixed-Point Constants<br />

Figure 41 (Page 2 of 2). Hexadecimal Constants<br />

Subfield Value Example Result<br />

Range for length: 1 to 256<br />

(byte length)<br />

.1 to .2048<br />

(bit length)<br />

Range for scale:<br />

Not allowed<br />

Range for exponent:<br />

Not allowed<br />

6. Nominal value<br />

Represented by:<br />

Hexadecimal<br />

digits<br />

(0 to 9 and<br />

A to F)<br />

DC X'1F'<br />

DC X'91F'<br />

Object code<br />

X'1F' ▌1▐<br />

X'091F' ▌3▐<br />

Enclosed by:<br />

Single quotation<br />

marks<br />

Exponent allowed:<br />

No<br />

Number of values<br />

per operand:<br />

Multiple<br />

Padding:<br />

With zeros at left<br />

Truncation of<br />

assembled value:<br />

At left<br />

Fixed-Point Constants—F and H<br />

Fixed-point constants let you introduce data that is in a form suitable for the<br />

arithmetic operations of the binary fixed-point machine instructions. The constants<br />

you define can also be automatically aligned to the correct doubleword, fullword or<br />

halfword boundary for the instructions that refer to addresses on these boundaries<br />

(unless the NOALIGN option has been specified; see “General Information About<br />

Constants” on page 129). You can do algebraic operations using this type of<br />

constant because they can have positive or negative values.<br />

A fixed-point constant is written as a decimal number, which can be followed by a<br />

decimal exponent. The format of the constant is as follows:<br />

1. The nominal value can be a signed (see ▌1▐ in Figure 42 on page 149)<br />

integer, fraction, or mixed number (see ▌2▐ Figure 42) followed by a signed<br />

exponent (see ▌3▐ in Figure 42). If a sign is not specified for either the number<br />

or exponent, + is assumed.<br />

2. The exponent must lie within the permissible range (see ▌4▐ in Figure 42). If<br />

an exponent modifier is also specified, the algebraic sum (see ▌5▐ in Figure 42)<br />

of the exponent and the exponent modifier must lie within the permissible<br />

range.<br />

Some examples of the range of values that can be assembled into fixed-point<br />

constants are given below:<br />

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