Professional Documents
Culture Documents
9873 Exp6 MPMC
9873 Exp6 MPMC
Aim: To transfer a block of data from one memory area to another (using string
instructions)
This instruction copies a byte or word from a location in the data segment to a location in the
extra segment. The offset of the source byte or word in the data segment must be in the SI
register. The offset of the destination in the extra segment must be contained in the DI register.
For multiple byte or multiple word moves the number of elements to be moved is put in the CX
register so that it can function as a counter. After the byte or word is moved SI and DI are
automatically adjusted to point to the next source and the next destination. If the direction flag
is 0, then SI and DI will be incremented by 1 after a byte move and they will incremented by 2
after a word move. If the DF is a 1, then SI and DI will be decremented by 1 after a byte move
and they will be decremented by 2 after a word move. MOVS affects no flags.
Fr. CONCEICAO RODRIGUES COLLEGE OF ENGINEERING
( FrCRCE)
Department of Electronics and Computer Science (ECS)
Algorithm:
Fr. CONCEICAO RODRIGUES COLLEGE OF ENGINEERING
( FrCRCE)
Department of Electronics and Computer Science (ECS)