Lab 13
Lab 13
12
Instructor: Muhammad Wasim
Semester: BS – IV
Objective:
Signature: _____________________________
1
Lab No 12
Theory
A processor performs its task by executing a computer program in binary language. The binary language
program may consist of many instructions. Processor programs may be written in easy to use high level language
instructions which may then be converted to the low level binary language.
Each sub-system in the microprocessor system – the memory, the microprocessor and the input and output
devices – can be thought of in terms of the registers it contains. RAM is a collection of registers (Labs 1 to 4).
The function of a microprocessor is implemented by a sequence of data transfers between registers in the
memory, the microprocessor and the I/O devices. The processor may also perform data transformation i.e.
changing or transforming the data. Examples of data transformation may include arithmetic and logic instructions
e.g. AND, OR,, multiplication, division, addition, subtraction, etc.
Instruction set:
The kind of individual transfers and transformations possible are specified by the microprocessor’s instruction set.
Each microprocessor is designed to execute a particular instruction set. Following is the diagram of the internal
registers of the 8085 microprocessor:
2
Lab No 12
Do It Yourself
Q4) Perform the following operations and write the code also.
i) Place a 5 in register A.
iii)Write and execute the following program, Also give comments at each stage and final contents of
registers:
MVI A ,10
MOV B,A
MOV C,B
MOV D,C
MOV E,B
MVI H ,0
MVI H,200
MOV A,H___________________________________________________________