HLASM - MVCL = MoVe Characters Long
The opcode of the MVCL instruction is X'0E'.
- Move data fields longer than 256 bytes.
- Wipe an area of storage.
- Even-odd register pair containing destination field and length:
- Destination address in the even register.
- Destination field length in the low-order 24 bits of the
odd 32-bit register.
- Even-odd register pair containing source field, length and padding value:
- Source address in the even register.
- Source field length in the low-order 24 bits of the odd
- Pad value in the high-order 8 bits of the odd 32-bit register.
- The processor moves the data from the source to the destination field,
padding it with the pad character if the destination field is longer.
- The processor sets the condition code as follows:
- 0 = Lengths are equal.
- 1 = Data truncated.
- 2 = Data padded.
- 3 = No data moved; fields overlap destructively.
- If the source length is specified as 0, then the entire destination field
will be filled with the pad character.
- MVC moves fields up to 256 bytes (inclusive)
- MVCLE moves fields longer than 16M bytes.
- The MVCL instruction was not in the original instruction set,
but has been around for a very long time.
- The PSW's Amode setting determines how many bits are used for the
source and destination addresses.
- MVCL is an interruptible instruction. That is, its execution can be
interrupted and later resumed by the operating system. To the programmer
this is a transparent process, but in dumps intermediate results may show
up. This happens because the processor will adjust the contents of the four
registers according to the progress made.
- After MVCL completes the contents of the four input registers are
YREGS * Define register names
L R0,TABLE * Point to field
L R1,TABLE_END * Point end of field
SR R1,R0 * Obtain length
XR R14,R14 * No source data
XR R15,R15 * Length = 0, Pad = X'00'
MVCL R0,R14 * Wipe entire table
To the Opcodes Overview.
To the English Homepage for Hlasm.com.
To the General Homepage for Bixoft and Hlasm.com.
This site is a member of WebRing.
You are invited to browse the
list of mainframe-loving sites.
Dinos are not dead. They are alive and well and living in data centers all
around you. They speak in tongues and work strange magics with computers.
Beware the dino! And just in case you're waiting for the final demise of
these dino's: remember that dinos ruled the world for 155-million years!
Dinos and other anachronisms
[ Join Now
| Ring Hub
Below you find the logo of our
and logos of the web-standards that this page adheres to.