Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

Fr.

CONCEICAO RODRIGUES COLLEGE OF ENGINEERING


( FrCRCE)
Department of Electronics and Computer Science (ECS)

Course, Subject & Experiment Details

Academic year 2022-23 Estimated Time 02 Hours


Microprocessors and
Course S.E. (ECS) Subject Name
Microcontrollers
Semester IV Chapter Title Instruction set
Experiment Type Coding Subject Code ECL 403

Timeline (2) Practical Skill & Applied Output Total (10)


Knowledge
(4) (4)

Aim: To transfer a block of data from one memory area to another (using string
instructions)

Theory: MOVS/MOVSB/MOVSW Instruction:

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)

Post- Lab Questions

1. Explain the function of the Direction flag in String operations?


2. WAP to reverse a given string ( using 8086 assembly language instructions).

You might also like