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<br />

Figure 36. Type Extension Codes for Constants<br />

Type<br />

Type<br />

Extension<br />

Description<br />

| C A<br />

ASCII character constant<br />

| E<br />

EBCDIC character constant<br />

| U<br />

Unicode UTF-16 character constant<br />

E H New hexadecimal floating-point constant<br />

B<br />

Binary floating-point constant<br />

D H New hexadecimal floating-point constant<br />

B<br />

Binary floating-point constant<br />

L H New hexadecimal floating-point constant<br />

B<br />

Binary floating-point constant<br />

| Q<br />

Hexadecimal floating-point, quadword alignment<br />

F D Doubleword fixed-point constant<br />

A D Doubleword address constant<br />

| V D<br />

Doubleword address constant<br />

| J<br />

D<br />

Doubleword address constant<br />

| Q D<br />

Doubleword address constant<br />

| R D<br />

Doubleword address constant<br />

The type extension specification, in conjunction with the type subfield, indicates to<br />

the assembler:<br />

1. How to assemble the nominal value(s) specified in subfield 6; that is, which<br />

binary representation or machine format the object code of the constant must<br />

have.<br />

2. At what boundary the assembler aligns the constant, if no length modifier is<br />

present.<br />

3. How much storage the constant occupies, according to the implicit length of the<br />

constant, if no explicit length modifier is present (for details, see “Padding and<br />

Truncation of Values” on page 130).<br />

Subfield 4: Program type<br />

| The syntax for coding the program type is shown in the subfield format on page<br />

| 127.<br />

| You may omit the program type subfield. If specified, the assembler assigns the<br />

| value to the symbol naming the DC instruction, if a symbol was present. It can be<br />

| specified as a decimal, character, hex or binary self-defining term and is stored as<br />

| a 32-bit value. The value is not used in any way by the assembler, and may be<br />

| queried by using the SYSATTRP built-in function.<br />

| The program type is specified within a P prefixed set of parenthesis - P(). For<br />

| example:<br />

| Prog1 DC CP(7)'Perth' Program type is 7<br />

| Prog2 DC 3XP(C'APC')'FF' Program type is C'APC'<br />

Chapter 5. Assembler Instruction Statements 135

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

Saved successfully!

Ooh no, something went wrong!