You are on page 1of 14

Page 1 of 14

Department of Information and Communication Technology

Course: ICT-3205: Computer Architecture and Microprocessor

Lecture 08

(Introduction to 8085 Instructions)

Kazi Mowdud Ahmed


Lecturer
Dept. of Information & Communication Technology
Islamic University, Kushtia-7003
Page 2 of 14
Page 3 of 14

Arithmetic Operations
The 8085 microprocessor performs various arithmetic operations, such as addition, subtraction,
increment, and decrement. These arithmetic operations have the following mnemonics:
Page 4 of 14
Page 5 of 14
Page 6 of 14
Page 7 of 14
Page 8 of 14
Page 9 of 14
Page 10 of 14

Writing Assembly Language Programs


Any program, no matter how large, begins with mnemonics. And just as several person contribute to the
construction of a hundred –story building, so the writing of a large program is usually the work of a team.
In addition, the 8085 instruction set contains only 74 different instructions, some of them used quite
frequently.
Page 11 of 14

In a hundred story building, most of the rooms are similar. If one knows the basic fundamentals of
constructing a room, one can learn how to tie these rooms together in a coherent structure. However,
planning and forethought are critical. Before beginning to build a structure, an architectural plan must be
drawn. Similarly, to write a program, one needs to draw up a plan of logical thoughts. A given task should
be broken down into small units that can be built independently. This is called the modular design
approach.

Writing a program is equivalent to giving specific commands to the microprocessor in a sequence to


perform a task. The italicized words provide clues to writing a program. Let us examine these terms:

 Perform a Task – What is the task you are asking it to do?

 Sequence – What is the sequence you want it to follow?

 Commands – What are the commands (instruction set) it can understand?

These terms can be translated into steps as follows:

Step 1: Read the problem carefully.

Step 2: Break it down into small steps.

Step 3: Represent these small steps in a possible sequence with a flowchart – a plan of attack.

Step 4: Translate each block of the flowchart into appropriate mnemonic instructions.

Step 5: Translate mnemonics into the machine code.

Step 6: Enter the machine code in memory and execute. Only on rare occasions is a program successfully
executed on the first attempt.
Step 7: Start troubleshooting (Debugging a program).

[For details: See main book]


Page 12 of 14
Page 13 of 14
Page 14 of 14

You might also like