Use this general macro to do the following:
- Convert a 4-byte file address to an 8-byte file address in 4x4
format.
- Convert an 8-byte file address in 4x4 format to a 4-byte file
address.
Format
- label
- A symbolic name can be assigned to the macro statement.
- FA4=(reg)|label1
- The label or general register (R1-R7, R14, R15) containing the
location of a 4-byte file address.
- FA8=(reg)|label2
- The label or general register (R1-R7, R14, R15) containing the
location of an 8-byte file address.
- ACTION
- Specifies the type of file address conversion to perform.
- 4TO8
- Indicates that the FA4 parameter contains a 4-byte file address, which is
used as input to the file address conversion. The corresponding 8-byte
file address in 4x4 format will be returned in the location represented by the
FA8 parameter.
- 8TO4
- Indicates that the FA8 parameter contains an 8-byte file address in 4x4
format, which is used as input to the file address conversion. The
corresponding 4-byte file address will be returned in the location represented
by the FA4 parameter.
- ERROR=label3
- The label in which to branch if an error occurs during macro
processing.
Entry Requirements
None.
Return Conditions
- All registers are maintained across this macro call.
- Control is returned to the next sequential instruction (NSI) or to the
label specified on the ERROR parameter if an error occurs.
Programming Considerations
- This macro can be run on any I-stream.
- If the file address specified for the FA8 parameter is not in 4x4 format
and ACTION=8TO4 is specified, control will be passed to the system error
routine and the ECB will be exited unless the ERROR parameter is coded.
Examples
None.