Assembler Format OpCode 01 (L,B
1
),02(B2)
MVC0(8,1) ,0(2) After the instruction is executed, field 1 becomes:
Field 12048 2052 F31 F4 I F51 F61 F71 F81 C9 I CA I Field 2 is unchanged.
Asindicated in the programming note in the MOVE instruction descriptiort, MVC can be used to propagate one
character through a field by starting the first-operand field
one byte to the right of the second-operand field. Forex ample, suppose that an area in storage starting with address
358 contains the following data:
358360 I 00 I F1 I F21 F31 F4 I Fsl F61 F71 F81 With the following MVC instruction, the zeros in location
358 can be propagated throughout the entire field (assume
that register 11 contains00 00 03 58):
Machine FormatOp Code L B1 01 B2 D2 Assembler Format OpCode 01 (L,a
1
),02(B
2
) MVC 1 (8,11),0(11)
BecauseMVC handles one byte at a time, the above
instruction essentially takes the byte at address 358 and
stores it at 359 (359 now contains00), takes the byte at
359 and stores it at 35A, and so on, until the entire field
is filled with zeros. Note that an MVI instruction could
have been used originally to place the byte of zeros inloca tion 358.
Notes:
1. Although the field occupying locations358-360 contains
nine bytes, the length coded in the assembler format is
equa11to the number of moves (one less than the field
length).
2. The order of operands is important even though only
onefield is involved.
Move Numerics (MVN)
To illustrate the operation of theMOVE NUMERICS instruction, assume that the following two fields are in
storage:
Field 1moo I C1 I C2 I C3 I C4 I C5 I C61 C71 C81 300 Systemj370 Principles of Operation
Field 27041 7049 I FO I F1 I F21 F31 F41 F51 F61 F71 F81 Also assume:
Register 14 contains00 00 70 90 Register 15 contains 00 00 70 40 After the instruction
Machine FormatOp Code L B1
D1I 03 I F 001 Assembler Format OpCode 01 (L,B
1
),02(B2)
MVN 1 (4,15),0(14)
is executed, field 2 becomes:7041 7049 I F1 , F21 F3' F41 F4' F5' F6' F7' F81 000 The numeric portions of locations 7090-7093 have been
stored in the numeric portions oflocations7041-7044. The
contents of locations7090-7097 and 7045-7049 are un changed.
Move with Offset (MVO)
Assume that the unsigned three-byte field in storageloca tions 4500-4502 is to be moved to locations 5600-5603 and given the sign of the one-byte field located at 5603. Also assume.:
Register 12 contains00 00 56 00 Register 15 contains 00 00 45 00 Storage locations 5600-5603 contain 77 88 99 OC Storage locations 45004502 contain 12 34 56
After the instruction
Machine FormatOp Code L1 L2 B1 I F1 I 3 I 2 I C 000 Assembler Format Op Code 01 IL
1
, B
1
),02 (L
2
, B2)MVO 0(4,12),0(3,15) 000 is executed, storage locations 5600-5603 contain 01 23 45 6C. Note that the second operand was extended with one
high-order zero to fill out the first-operand field.
MoveZones (MVZ) The MOVE ZONES instruction, similarly to MVC and MVN,
can operate on overlapping or noiloverlapping fields. (See
the examples forMVC and MVN.) When operating on non overlapping fields, MVZ works similarly to the MVN instruc tion, except that MVZ moves the high-order four bits of
1
),02(B2)
MVC
Field 1
As
character through a field by starting the first-operand field
one byte to the right of the second-operand field. For
358 contains the following data:
358
358 can be propagated throughout the entire field (assume
that register 11 contains
Machine Format
1
),02(B
2
)
Because
instruction essentially takes the byte at address 358 and
stores it at 359 (359 now contains
359 and stores it at 35A, and so on, until the entire field
is filled with zeros. Note that an MVI instruction could
have been used originally to place the byte of zeros in
Notes:
1. Although the field occupying locations
nine bytes, the length coded in the assembler format is
equa11to the number of moves (one less than the field
length).
2. The order of operands is important even though only
one
Move Numerics (MVN)
To illustrate the operation of the
storage:
Field 1
Field 2
Register 14 contains
Machine Format
D1
1
),02(B2)
MVN 1 (4,15),0(14)
is executed, field 2 becomes:
stored in the numeric portions oflocations
contents of locations
Move with Offset (MVO)
Assume that the unsigned three-byte field in storage
Register 12 contains
After the instruction
Machine Format
1
,
1
),
2
, B2)
high-order zero to fill out the first-operand field.
Move
can operate on overlapping or noiloverlapping fields. (See
the examples for