Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

ineed the solution of discusstion EXP. (5): SHIFTING & ROTATION Objective: Study and analyze shifting and rotation (SHR, SHL, LOR, LOL, RCL, RCR, SAR &

ineed the solution of discusstion image text in transcribed
image text in transcribed
EXP. (5): SHIFTING \& ROTATION Objective: Study and analyze shifting and rotation (SHR, SHL, LOR, LOL, RCL, RCR, SAR \& SAL). APPARATUS: 8086 Microprocessor Trainer. Theorv: As we know that any machine (system) works on machine language, which consists of binary numbers. In the 8086 microprocessor, we have 16-bit registers to handle our data. Sometimes, the need to perform some necessary shift and rotate operations on our data may occur according to the given condition and requirement. So, for that purpose, we have various Shift and Rotate instructions present in the 8086 microprocessor. Let us discuss them one by one and understand their working: - SHR: Shift Right - SAR: Shift Arithmetic Right - SHL: Shift Left - SAL: Shift Arithmetic Left - ROL: Rotate Left - ROR: Rotate Right - RCL: Rotate Carry Left - RCR: Rotate Carry Right PROCEDURE: 1. Enter the program from Location 0400H for 8086 trainer and make sure that program is entered correctly. 2. Execute the program. 3. After execution, display the result. To see the value of registers, do these instructions: RESET > ER > [Register Symbol ]> NEXT Register Symbol: AX, BX, CX .... etc. DESCUSSION: 1. What is your conclusion from this experiment? 2. Write a program to rotate the content of BL 2-bit. 3. By using instructions from the shift and rotate group, write a program that exchanges the least significant nibble of AL with the most significant nibble of it. 4. Write a program to shift the content of CX 5-bit. 5. By using instructions from the shift and rotate group, write a program to multiply the stored byte in DL by 10h and store the result in AX. Assume DH=00h

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions