The %AINT command can be used to specify whether AID is to work with 24-bit addresses or 32-bit addresses for indirect addressing. For AID, the address before the pointer operator (->) then consists of 24 or 31 bits accordingly.
The addressing mode for the test object is not affected as a result.
aid-mode specifies the mode of address interpretation for indirect addressing within an AID work area.
Command | Operand |
%AINT | [aid-mode] [,...] |
As the default, AID interprets indirect address specifications according to the current addressing mode for the test object. Specification of %AINT with the keyword %MODEn deactivates automatic adaptation in this way. The test object4s addressing mode can be interrogated with %DISPLAY %AMODE. It can be changed with %MOVE. %SHOW %AID or %SHOW %BASE reveals the addressing mode valid for the current AID work area, in addition to other information.
If no qualification is specified, %AINT applies to AID commands which reference or use indirect addresses in the current AID work area.
An %AINT without operands switches back to the default address interpretation. The same effect is achieved by %AINT with a base qualification and without %MODEn. Otherwise the declared addressing mode applies until /LOGOFF or /EXIT-JOB.
%AINT does not change the program state.
aid-mode |
defines how indirect addresses are to be interpreted in subsequent AID commands, applicable in the current AID work area or the work area identified by the specified base qualification.
If a keyword is specified for address interpretation but no qualification is specified, the %AINT command applies to the processing of the current AID work area.
If a base qualification is specified but no keyword for address interpretation, the default AID address interpretation applies in the corresponding AID work area.
|
If a period is placed at the beginning, it is an identifier for a prequalification. It must have been defined via a previous %QUALIFY command.
A period must be placed between a base qualification and the keyword for address interpretation.
E={VM|Dn}
This is specified if it is not intended that the change in address should apply to the current AID work area. If only a base qualification is specified, the default address interpretation applies again for the area which this addresses.
{%M[ODE]31 | %M[ODE]24}
Keyword specifying how many bits are to be taken into account in indirect addressing in AID commands.
%M[ODE]31 | 31-bit addressing. |
Examples
The contents of address V’100’ are: 1200000C
The contents of register 5 are: 010001A0
%AINT %MODE24
%DISPLAY V'100'->
%MOVE %5-> INTO %5G
The %AINT command has the effect of switching to 24-bit address interpretation.
The switch applies to the current AID work area.
The %DISPLAY outputs 4 bytes starting at address V’00000C’.
The %MOVE transfers 4 bytes starting from address V’0001A0’ to AID register 5.%AINT %MODE31
%DISPLAY V'100'->
%MOVE %5-> INTO %5G
Address interpretation for the current AID work area is switched to 31-bit interpretation.
The %DISPLAY outputs 4 bytes starting at address V’1200000C’.
The %MOVE transfers 4 bytes starting at address V’010001A0’ to AID register 5.