HLASM - MVCL = MoVe Characters Long

The opcode of the MVCL instruction is X'0E'.


  1. Move data fields longer than 256 bytes.
  2. Wipe an area of storage.


  1. Even-odd register pair containing destination field and length:
  2. Even-odd register pair containing source field, length and padding value:


  1. The processor moves the data from the source to the destination field, padding it with the pad character if the destination field is longer.
  2. The processor sets the condition code as follows:

Special Cases

  1. If the source length is specified as 0, then the entire destination field will be filled with the pad character.

Related Instructions

  1. MVC moves fields up to 256 bytes (inclusive) without padding.
  2. MVCLE moves fields longer than 16M bytes.


  1. The MVCL instruction was not in the original instruction set, but has been around for a very long time.


  1. The PSW's Amode setting determines how many bits are used for the source and destination addresses.
  2. 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.
  3. After MVCL completes the contents of the four input registers are destroyed.


         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.
Running Tyrannosaurus Rex 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 | Random | << Prev | Next >> ]

Below you find the logo of our sponsor and logos of the web-standards that this page adheres to.