Any of the branching conventions shown in Table 1 can be used to request loading and branching to a segment. As a result, the requested segment and any segments in its path are loaded if they are not part of the path already in virtual storage. Control is then passed to the requested segment at the location specified by the address constant placed in general register 15.
Example |
Name1 |
Operation |
|
---|---|---|---|
1 |
L |
R15,=V(name) |
|
2 |
|
L |
R15,ADCON |
3 |
L |
R15,=V(name) |
|
4 |
L |
R15,=V(name) |
|
56 |
L |
R15,=V(name) |
|
66 |
L |
R15,=V(name) |
|
76 |
L |
R15,=V(name) |
|
Notes:
|
The address constant must be a 4-byte V-type address constant. The high-order byte is reserved for use by the control program and must not be altered during execution of the program. The BAS and BASR instructions cannot be used.
A branch between inclusive segments is always valid. A return can be made using the address stored in Rn. A branch between exclusive segments is valid if the conditions for a valid exclusive reference are met; a return can be made only by another exclusive reference.