Professional Documents
Culture Documents
Heaven's Light Is Our Guide: Rajshahi University of Engineering & Technology (RUET), Rajshahi
Heaven's Light Is Our Guide: Rajshahi University of Engineering & Technology (RUET), Rajshahi
Experiment no.: 03
Name of the experiment: Experimental study of 8051 arithmetic assembly
language instructions using EdSim51 emulator software.
Year: 2019
Experiment No.: 03
Name of the experiment: Experimental study of 8051 arithmetic assembly language
instructions using EdSim51 emulator software
Introduction: EdSim51 was developed by James Rogers and it is a simulator that is widely used
for multiple purposes. A screenshot of EdSim51 is given below.
Program 1: Write a program to add the values of location 55H and 57H and store the values in
location 58H and 59H.
Program:
MOV 55H, #0FFH
MOV 57H, #0FEH
MOV A, 55H
ADD A, 57H
MOV 58H, A
JC NEXT
NEXT: MOV 59H, #1H
Output:
Program 2: Write a program to subtract the values of location 40H and 41H and store the values
in location 42H.
Program:
MOV 40H,#32H
MOV 41H,#21H
MOV A,40H
SUBB A,41H
MOV 42H,A
Output:
Program 3: Write a program to multiply the values of location 55H and 57H and store the
values in location 58H and 59H.
Program:
MOV 55H, #0FFH
MOV 57H, #0FEH
MOV A, 55H
MOV B, 57H
MUL AB
MOV 58H,A
MOV 59H,B
Output:
Program 4: Write a program to divide the values of location 55H and 57H and store the values
in location 58H and 59H.
Program:
MOV 55H, #105
MOV 57H, #25
MOV A, 55H
MOV B, 57H
div AB
MOV 58H,A
MOV 59H,B
Output:
Discussion: In this experiment the basic instruction set of 8051 was learnt. After that, a few
programs were performed in EdSim51 emulator software and the outputs were also observed.