UNIVERSITI TEKNIKAL MALAYSIA MELAKA
FAKULTI KEJURUTERAAN MEKANIKAL
MICROPROCESSOR
TECHNOLOGY
BENG 2223
GROUP ASSIGNMENT REPORT
Semester 1 2012/2013
GROUP
Group Number
3
Question
3
Number
MEMBERS AND MATRIX NUMBER
SITI NORLINA ATASYA
BINTI ABDUL RAHIM
B041110061
AFIQAH BINTI NGAH
NASARUDDIN
B041110051
AMIRA KHALIDA BINTI
MOHD NASIR
B041110013
NOR FATIN FATIAH
BINTI RAMLI
B041110079
NURUL SHAHADAH
BINTI HAMZAH
B041110026
UNIVERSITI TEKNIKAL MALAYSIA MELAKA
FAKULTI KEJURUTERAAN MEKANIKAL
PROGRAM 30 DIFFERENT RANDOM INTEGERS
NUMBER IN ASCENDING ORDER, SUM ALL OF THE
NUMBER, THE MAXIMUM AND MINIMUM NUMBER.
Atasya, Afiqah, Amira,Fatin, Shahadah
Abstract
This assignment is about to create a program to
perform sort in ascending order, sum all of the
number, the maximum and minimum number of the
30 different random integers number. First, load the
IN ASCENDING ORDER
A. Program
Opcode
B, 29
START,LXI
H, 2200H
MVI
C, 29H
BACK,MOV
A,M
data to the register pair. We use counter that loading
a register with certain value sets up a loop counter to
Operand
MVI
INX
perform 30 different integers number. Key in the
CMP
data to the memory editor, the remove the data to
JC,SKIP
accumulator and register so that the instruction can
JZ,SKIP
MOV
D,M
be run. After all the instruction done, the data been
MOV
M,A
store back to memory. So, overall we have four
DCX
program of the different random integer number that
MOV
M,D
represents the assignment which is one for
INX
SKIP,DCR
ascending order, one for sum all of the number and
JNZ,BACK
DCR
another one for maximum and minimum number.
JNZ,START
I.
INTRODUCTION
The purpose of this project is to create a program
using the microprocessor 8085 instruction. It is
chosen because it is widely used and its simple
architecture. Microprocessor is an important part
in a personal computer because it is recognized
as the brain part in personal computer. It has role
to detect, read an instruction and give out
respond according to the instruction. The
microprocessor 8085 instructions we had use
include LXI, MVI, MOV, CPI, JZ, JNZ, INR,
DCR, INX, JMP, and HLT. After we construct
the program, we insert these instructions into the
assembler and 30 values in memory editor.
II.
THEORY /DESIGN METHOLOGY
HLT
B. Flow Chart
UNIVERSITI TEKNIKAL MALAYSIA MELAKA
FAKULTI KEJURUTERAAN MEKANIKAL
iii.
MEMORY EDITOR
SUM OF ALL THE NUMBER
c. SIMULATION
i.
IDE 8085
A.
Address
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
100A
100B
100C
100D
100E
200F
B.
ii.
ASSEMBLER
PROGRAM
FLOW CHART
Opcode
LXI
Operand
H, 2000H
MOV
MVI
C,M
A, 00H
INX
MOV
ADD
DCR
JNZ
H
B, M
B
C
1006H
INX
MOV
HLT
H
M, A
UNIVERSITI TEKNIKAL MALAYSIA MELAKA
FAKULTI KEJURUTERAAN MEKANIKAL
iii.
MEMORY EDITOR
C. SIMULATION
i.
IDE 8085
THE MAXIMUM AND THE MINIMUM NUMBER
i.
PROGRAM
MINIMUM
MAXIMUM
LXI H,2500H
ii.
MOV C,M
ASSEMBLER
INX H
MOV A,M
DCR C
LOOP
INX H
JNC GET
MOV A,M
GET
DCR C
JNZ LOOP
STA 2450
HLT
UNIVERSITI TEKNIKAL MALAYSIA MELAKA
FAKULTI KEJURUTERAAN MEKANIKAL
MINIMUM
LXI H,2500H
MOV C,M
INX H
MOV A,M
DCR C
LOOP
INX H
CMP M
JC GET
MOV A,M
GET
DCR C
JNZ LOOP
STA 2450
HLT
c.
SIMULATION
i.
IDE 8085
ii.
ASSEMBLER
UNIVERSITI TEKNIKAL MALAYSIA MELAKA
FAKULTI KEJURUTERAAN MEKANIKAL
the data transfer (copy) operations, arithmetic
operation, logical operation, branching operation
and machine-control operation to solve the
problem.
ACKNOWLEDGEMENT
We would like to express our greatest gratitude
to our instructor, Mr ZulAtfyi Fauzan bin
Mohammed Napiah, from the Faculty of
Electronic and Computer Engineering for the
guidance and support along the way in
completing this assignments. Thanks to our
group members for the time and effort in
finishing the assignment. We realize the
importance of working together in a group while
completing this assignment. We would like to
thank our classmates for the help and support.
iii.
MEMORY EDITOR
REFERENCES
Thomas L. Floyd, Digital Fundamental, 9th
Edition, Prentice Hall, 2004
CONCLUSION
The program which is written by our group is
success based on the results that obtained from
stimulator 8085. Besides that, we also can apply
William Kleitz, Digital and Microprocessor
Fundamental, 4th Edition, Prentice Hall, 2003
AlfonsGeser, A Specification of the Intel 8085
Microprocessor,Lecture Notes in Computer
Science,vol 394,pp.347-401,1989