You are on page 1of 5

Experiment 6: Shifting of 8-bit number.

Student Name: Yash Gautam UID: 20BCS7550


Branch: CSE Section/Group: 718 B
Semester: 4th Date of Performance:02/04/2022
Subject Name: MPI Lab Subject Code:20CSP-153

1. Aim/Overview of the practical: Write two programs to shift left a 8-bit number by 1 bit
and 2 bit.

2. Task to be done: We have to write two programs to shift left a 8-bit number by 1 bit
and 2 bit.

3. Apparatus/Simulator used (For applied/experimental sciences/materials based labs):


 Jubin 8085 Simulator
 Java Language
 JDK
4. Algorithm/Flowchart (For programming based labs):
A. Shifting by 1 bit of 8-bit number:

 Begin.
 Load number in Accumulator using LDA command.
 Shift left the value of Accumulator using RAL command.
 Store the value of A using STA command.
 Halt the program.

B. Shifting by 2 bits of 8-bit number:


 Begin.
 Load number in Accumulator using LDA command.
 Shift left the value of Accumulator using RAL command.
 Again, Shift left the value of Accumulator using RAL command.
 Store the value of A using STA command.
 Halt the program.
5. Description/ Code:
 Shifting by 1 bit of 8-bit number:

LDA 3000H
RAL
STA 3001H
HLT
#ORG 3000H
#DB 50H

 Shifting by 2 bits of 8-bit number:

LDA 3000H
RAL
RAL
STA 3001H
HLT
#ORG 3000H
#DB 50H

6. Result/Output/Writing Summary:

 Shifting by 1 bit:
 Shifting by 2 bits:
Learning outcomes (What I have learnt):

1. Learnt RAL command.

2. Learnt LDA and STA commands.

3. Learnt how to shift left a 8-bit number by 1 bit.


4. Learnt how to shift left a 8-bit number by 2 bits.

5. Learnt basic programming in Jubin Simulator.


Evaluation Grid (To be created as per the SOP and Assessment guidelines by the faculty):

Sr. No. Parameters Marks Obtained Maximum Marks


1.
2.
3.

You might also like