OP = 68
AF is the Destination field length. The length may be indirect but a literal flag will cause an Invalid Instruction (IEX = 21) fault. A value of 00 represents a default machine dependent length for single register operations, or four times the internal register length when storing the four Mobile Index Registers. See Compatibility Notes A.62.
BF specifies the Store Variant and may be specified as an indirect field length. The following variants may be specified by this instruction after any indirect field length has been resolved.
|Store Index Register #7||7|
|Store Index Register #6||6|
|Store Index Register #5||5|
|Store Index Register #4||4|
|Store Index Register #3||3|
|Store Index Register #2||2|
|Store Index Register #1||1|
|Store Mobile Index Registers (4)||0|
The use of all other BFM values is reserved and will cause an Invalid Instruction (IEX = 26) fault.
A is the address of the destination field. Address may be indexed, indirect or extended. The final address controller must equal UN or SN or cause an Invalid Instruction (IEX = 03) fault.
The Store Index Register instruction provides the memory address A of the starting location of either a data field that will be used to store the specified BFM Index Register or the starting location of a data field that will be used to store the four Mobile Index Registers (IX4, IX5, IX6 and IX7).
Each Index Register contains a Sign Digit (MSD), a Base Indicant digits (Next MSD) and a machine dependent offset field. See Compatibility Notes A.32 for valid Base Indicant values and Compatibility Notes A.62 for the length of the internal registers.
If the store of the four Mobile Index Registers is specifed (BFM = 0), AF must be equal to 00 or an Invalid Instruction (IEX = 25) is reported. The length is by default four times the machine dependent length of a single Index Register. The Address Controller of the source A must be UN or an Invalid Instruction (IEX = 03) is reported.
If the store of a single register is specified (BFM <> 0) and AF is equal to 00, the length is by default the machine dependent length for a single Index Register. The Address Controller of the source A Invalid Instruction (IEX = 03) is reported.
If UN data type is specified and the Destination Length AF is equal to or greater than the combined length of the offset field and the base indicant field of the specified Index Register, the combined offset/base indicant ffield of the specified Index Register right justified and padded with zero digits, if needed, is written in the destination field.
If the Destination Length AF is equal or shorter than the Offset field of the specified index register, the offset field is examined for non-zero content. If the number of significant digits is greater than the Destination field length AF, an Invalid Instruction (IEX = 07) fault is reported and the instruction is terminated without changing memory. Otherwise store the remainder of the offset field right justified with padding of zero digits, if needed.
If SN data type is specified, examine the sign digit of the specified Index Register. The most significant digit of the destination field is set to D if the speicified Index Register is negative otherwise it is set to C. The operation on the other fields is performed as described in the UN case.
The Comparison Flags are set to EQUAL if all of the digits of the offset field of the specified index register are equal to zero.
The Comparison Flags are set to NULL if all of the digits of the offset field of the specified index register are equal to E.
Otherwise, the Comparison Flags are set to HIGH if the sign of the specified Index Register is positive or set to LOW if the sign of the specified Index Register is negative.
If the store of the four Mobile Index Registers is specified, the Comparison Flags will remain unchanged.
The Overflow Flag is unchanged by this instruction.