Transfer block of N bytes from source to destination 

Algorithm for Transfer block of N bytes
Step I          :   Initialize the data in the source memory and destination memory.
Step II         :   Initialize SI and DI with source and destination address.
Step III       :   Initialize CX register with the count.
Step IV       :   Initialize the direction flag to zero.
Step V         :   Transfer the data block byte by byte to destination.
Step VI       :   Decrement CX.
Step VII      :   Check for count in CX, if not zero goto step V else goto step VIII.
Step VIII    :   Display the bytes in destination location.
Step IX       :   Stop.

Transfer Block of N Bytes Code