Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
Branching to an external address HLASM Language Reference SC26-4940-06 |
|
Use the V-type address constant to identify the external symbol that represents the address in an external source module that you want to branch to. For example, you can load into a register the V-type address constant that identifies the external symbol. Using this register, you can then branch to the external address represented by the symbol. If the symbol is the name entry of a START, CSECT, or RSECT instruction in the other source module, and thus names an executable control section, it is automatically identified as an entry symbol. If the symbol represents an address in the middle of a control section, you must identify it as an entry symbol for the external source module. You can also use a combination of an EXTRN instruction to identify,
and an A-type address constant to contain, the external branch address.
However, the V-type address constant is more convenient because:
The following example shows how you use the symbol EXMOD1 as
both the name of an external symbol and a name entry on another statement.
If the external symbol that represents the address to which you want to branch is part of an overlay-structured module, identify it with a V-type address constant. Do not use an EXTRN instruction and an A-type address constant. You can use the supervisor CALL macro instruction to branch to the address represented by the external symbol. The CALL macro instruction generates the necessary V-type address constant.
|
Copyright IBM Corporation 1990, 2014
|