You are on page 1of 3

Lab No 12

USMAN INSTITUTE OF TECHNOLOGY


Department of Computer Science
Computer Organization & Assembly Language – CS223

12
Instructor: Muhammad Wasim
Semester: BS – IV

Objective:

Study of an instruction set using a processor simulator

Name of Student: _____________________________________________

Roll No: ______________________________Sec. __________

Date of Experiment: ___________________________________________

Marks Obtained/Remarks: _____________________________

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:

Data Transfer within the processor:

The MOV instruction is used:


MOV r1 , r2 ; Comment. MOV is opcode and r1 and r2 are operands.

2
Lab No 12

Do It Yourself

Answer the following questions.

Q1) What is data transfer?

Q2) What is data transformation?

Q3) What is an instruction set?

Q4) Perform the following operations and write the code also.
i) Place a 5 in register A.

ii) Place a 60 in register pair HL.


______________________________________________________________________________________
_

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___________________________________________________________

You might also like