Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
RI format HLASM Language Reference SC26-4940-06 |
|
The operand fields of RI-format instructions designate a register
and an immediate operand, with the following exception:
Symbols used to represent registers (such as REG1 in the example) are assumed to be equated to absolute values 0 - 15. The 16 bit immediate operand has two different interpretations, depending on whether the instruction is a branching instruction or not. There are two types of non-branching RI-format instructions.
Examples:
When assembled, the object code for the instruction labeled BETA1,
in hexadecimal, is
where:
For branching RI-format instructions, the immediate value is treated as a signed binary integer representing the number of halfwords to branch relative to the current location. The branch target can be specified as a relocatable expression, in which case the assembler performs some checking, and calculates the immediate value. The branch target can also be specified as an absolute value, in which case the assembler issues a warning before it assembles the instruction. Examples:
When assembled, the object code for the instruction labeled BETA1,
in hexadecimal, is
where:
If the GOFF assembler option is active, then it is possible to specify the target address as one or more external symbols (with or without offsets). If an offset is specified it can be specified as an absolute or relocatable expression. If the offset is specified as a relocatable expression, the assembler performs some checking and calculates the immediate value. If the offset is an absolute expression the assembler issues warning message ASMA056W. Examples:
When assembled, the object code for the instruction labeled BETA1,
in hexadecimal, is
where:
In
addition GOFF Relocation Dictionary Data Items are generated for the
external symbols A, B, and C. |
Copyright IBM Corporation 1990, 2014
|