Download as docx, pdf, or txt
Download as docx, 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 count the number of ones in a given number

Theory: Instructions used: Rotate instructions

ROL − Used to rotate bits of byte/word towards the left, i.e. MSB to LSB and to Carry Flag [CF].
ROR − Used to rotate bits of byte/word towards the right, i.e. LSB to MSB and to Carry Flag

[CF].
RCR − Used to rotate bits of byte/word towards the right, i.e. LSB to CF and
CF to MSB.
RCL − Used to rotate bits of byte/word towards the left, i.e. MSB to CF and
CF to LSB.
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. Give applications of Rotate instructions through carry and without carry


Ans:
2. Explain the Shift instructions of the 8086. State the difference between logical shift and
arithmetic shift

Ans:

You might also like