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.

Part 2. Machine and assembler instruction statements|Chapter 4. Machine instruction statements . . . 75General instructions . . . . . . . . . . .75Decimal instructions . . . . . . . . . . .75Floating-point instructions . . . . . . . . .76Control instructions . . . . . . . . . . .76Input/output operations . . . . . . . . . .76Branching with extended mnemonic codes . . . .77Alternative mnemonics for some branch relativeinstructions . . . . . . . . . . . . .80Statement formats . . . . . . . . . . . .80Symbolic operation codes . . . . . . . . . .81Operand entries . . . . . . . . . . . . .82Registers . . . . . . . . . . . . . .83Register usage by machine instructions . . .83Register usage by system . . . . . . . .84Addresses . . . . . . . . . . . . . .84Implicit address . . . . . . . . . . .85Explicit address . . . . . . . . . . .85Relative address . . . . . . . . . . .85Relocatability of addresses . . . . . . .85Machine or object code format . . . . . .86Lengths . . . . . . . . . . . . . . .86Immediate data . . . . . . . . . . . .87Examples of coded machine instructions . . . . .87RI format . . . . . . . . . . . . . .88RR format . . . . . . . . . . . . . .89RS format . . . . . . . . . . . . . .90RSI format . . . . . . . . . . . . . .91RX format . . . . . . . . . . . . . .91SI format . . . . . . . . . . . . . .92SS format . . . . . . . . . . . . . .93Chapter 5. Assembler instruction statements . . 9764-bit Addressing Mode . . . . . . . . . .98*PROCESS statement . . . . . . . . . . .98ACONTROL instruction . . . . . . . . . . 100ADATA instruction . . . . . . . . . . . 106AINSERT instruction . . . . . . . . . . . 106ALIAS instruction . . . . . . . . . . . . 108AMODE instruction . . . . . . . . . . . 109CATTR instruction (z/OS and CMS) . . . . . . 111CCW and CCW0 instructions . . . . . . . .113CCW1 instruction . . . . . . . . . . . .115CEJECT instruction . . . . . . . . . . .116CNOP instruction . . . . . . . . . . . .117COM instruction . . . . . . . . . . . .119COPY instruction . . . . . . . . . . . . 120CSECT instruction . . . . . . . . . . . . 122CXD instruction . . . . . . . . . . . . 123DC instruction . . . . . . . . . . . . . 125Rules for DC operands . . . . . . . . . 127General information about constants . . . . 127Length attribute value of symbols namingconstants . . . . . . . . . . . . . 127Alignment of constants . . . . . . . . 128Padding and truncation of values . . . . . 130||||Padding . . . . . . . . . . . . . 130Truncation . . . . . . . . . . . . 130Subfield 1: Duplication Factor . . . . . . . 131Subfield 2: Type . . . . . . . . . . . 132Subfield 3: Type Extension . . . . . . . . 133Subfield 4: Program type . . . . . . . . 134Subfield 5: Modifier . . . . . . . . . . 134Length modifier . . . . . . . . . . 135Scale modifier . . . . . . . . . . . 137Exponent modifier . . . . . . . . . . 138Subfield 6: Nominal Value . . . . . . . . 138Binary constant—B . . . . . . . . . 140Character constant—C . . . . . . . . 140Graphic constant—G . . . . . . . . . 144Hexadecimal constant—X . . . . . . . 145Fixed-point constants—F and H . . . . . 146Decimal constants—P and Z . . . . . . 149Address constants . . . . . . . . . . 151Offset and length constants . . . . . . . 157Hexadecimal floating-point constants—E, EH,D, DH, L, LH, LQ . . . . . . . . . . 159Binary floating-point constants—EB, DB, LB 165Decimal floating-point constants—ED, DD,LD . . . . . . . . . . . . . . . 166Syntax of binary, decimal, and hexadecimalfloating-point constants . . . . . . . . 166Floating-point special values . . . . . . 169Literal constants . . . . . . . . . . 170DROP instruction . . . . . . . . . . . . 171Labeled USING . . . . . . . . . . . 172Dependent USING . . . . . . . . . . 172DS instruction . . . . . . . . . . . . . 173Bytes skipped for alignment . . . . . . . 175How to use the DS instruction . . . . . . . 175To reserve storage . . . . . . . . . . 175To force alignment . . . . . . . . . . 175To name fields within an area . . . . . . 176DSECT instruction . . . . . . . . . . . . 177DXD instruction . . . . . . . . . . . . 179EJECT instruction . . . . . . . . . . . . 180END instruction . . . . . . . . . . . . 181ENTRY instruction . . . . . . . . . . . 182EQU instruction . . . . . . . . . . . . 183Using conditional assembly values . . . . . 186EXITCTL instruction . . . . . . . . . . . 186EXTRN instruction . . . . . . . . . . . 188ICTL instruction . . . . . . . . . . . . 189ISEQ instruction . . . . . . . . . . . . 189LOCTR instruction . . . . . . . . . . . 190LTORG instruction . . . . . . . . . . . 192Literal pool . . . . . . . . . . . . . 193Addressing considerations . . . . . . . . 194Duplicate literals . . . . . . . . . . . 194MNOTE instruction . . . . . . . . . . . 195Remarks . . . . . . . . . . . . . . 196OPSYN instruction . . . . . . . . . . . 197© Copyright IBM Corp. 1982, 2008 73

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

Saved successfully!

Ooh no, something went wrong!