Table of Contents

Move Links (MVL)/OP=09

Format

OP AF BF A Syllable B Syllable C Syllable

OP = 09

AF length of all three operands. A value of 00 is equal to a length of 100 units (digits or characters as specified by the C address controller). An indirect field length may be indicated. A literal flag will cause an Invalid Instruction (IEX = 21) fault. See Compatibility Notes A.21.1.
BF unused and ignored, but may be specified as an indirect field length.

The A Syllable is the address of the A data field. Address may be indexed, indirect or extended. The final address controller must be equal to the C address controller.
The B Syllable is the starting address of the destination data field. Address may be indexed, indirect or extended. The final address controller must be equal to the C address controller.
The C Syllable is the end address of the destination data field. Address may be indexed, indirect or extended. The final address controller may be UN, UA or SN.

If the three address controllers are not equal, cause an Invalid Instruction (IEX = 03) fault. See Compatibility Notes A.21.3.

Function

The Move Links instruction moves the number of units specified by AF in the following manner. The C field data is saved. The A field data is moved to the C field. The B field data is moved to the A field. The saved C field data is moved to the B field.

Comparison Flags

The Comparison Flags and Overflow Flags are unchanged by this instruction.

Overlap

Any total or partial overlap of A and B may produce inconsistent results. See Compatibility Notes A.21.2.

Examples

Example (1) Move Numeric Fields

OP AF BF A Syllable B Syllable C Syllable
09 05 00 A Field UN B Field UN C Field UN
                    BEFORE              AFTER
   A Field           12345              67890
   B Field           67890              87654
   C Field           87654              12345

Example (2) Move Alpha Fields

OP AF BF A Syllable B Syllable C Syllable
09 03 00 A Field UA B Field UA C Field UA
                    BEFORE              AFTER
   A Field            XYZ                MNO
   B Field            MNO                GHI
   C Field            GHI                XYZ

Example (3) Two Field Exchange

OP AF BF A Syllable B Syllable C Syllable
09 04 00 A Field SN B Field SN B Field SN
                    BEFORE              AFTER
   A Field           +2386              +0004
   B Field           +0004              +2386