Professional Documents
Culture Documents
Microprocessors: Familiarization With The Edsim51 Simulator and The 8051 Instruction Set
Microprocessors: Familiarization With The Edsim51 Simulator and The 8051 Instruction Set
EXPERIMENT NO. 1
Course/Section: CPE108L/E02
Group No.: 10
________Cyrel Manlises________
Professor
PART ONE: Familiarization with the simulator
Q1. What are the contents of the registers A, R6, and R0?
A.___________________
Q2. What is the output of the program? What do you think is the
effect of the changes you have made in the program?
A,B_____________________________________
_________________________________________________
Q4. What is the output of the program?
ADD.______________________________
PART TWO: Exploring the Instruction Set of 8051
Q1-II. What is the output of the program? Complete the given
table 1.
TABLE 1
ROM address Assembly Language Result
0000 CLR A Acc=0x00
0001 MOV R5, #35H R5=0x35
0003 MOV R7, #45H R7=0x45
0005 MOV A, #0 Acc=0x00
0007 ADD A, R5 A=0x35
0008 ADD A, R7 A=0x7A
0009 ADD A, #27H A=0xAl
Q2-II. Go to code memory and complete table 2.
TABLE 2
ROM Assembly Machine Byte Size of the
Address Language Language instruction
(OpCode)
0000 CLR A E4 1
0001 MOV R5, #35H 7D35 2
0003 MOV R7, #45H 7F45 2
0005 MOV A, #0 7400 1
0007 ADD A, R5 2D 1
0008 ADD A, R7 2F 1
0009 ADD A, #27H 2427 2
_________________________________________________
Q4-II. What is corresponding value of each flag in PSW?
Complete table 3.
TABLE 3:PSW
CY AC F0 RS1 RS0 OV -- P
0 1 0 0 0 1 0 1
TABLE 5
RAM RS1 RS0 0V 1 P
Locations
Content 1 0 0 0 1