Uploaded by ابو العز

352CCS Lab MiniProject 4

advertisement
KING KHALID UNIVERSITY
College of Computer Science
Dept. of Computer Science
Subject Code: 352 CCS
Subject Name: Microprocessors &
Assembly Language
HOD: Dr. Omar
Teacher: Syeda
Section:816
Deadline: 30-11-2023
Mini Project
Student ID:
Student Name:
Section:
Mini Project instructions
1) The total grade of the project is 5 marks,
2) Show the results and submit the mini project by the deadline.
General Instructions:
 Explain the project and analyze the logic of the program in clear.
 Write the code of the project in the code section.
 Write steps for execution and running the project, insert the screen shot and result
of the program.
1.LARGEST NUMBERS IN AN ARRAY OF DATA
OBJECTIVE
To find the largest number in an array of data using 8085 instruction set.
 ALGORITHM
STEP 1: Load the address of the first element of the array in HL pair
STEP 2: Move the count to B – reg.
STEP 3: Increment the pointer
STEP 4: Get the first data in A – reg.
STEP 5: Decrement the count.
STEP 6: Increment the pointer
STEP 7: Compare the content of memory addressed by HL pair with that of A - reg.
STEP 8: If Carry = 0, go to step 10 or if Carry = 1 go to step 9
STEP 9: Move the content of memory addressed by HL to A – reg.
STEP 10: Decrement the count
STEP 11: Check for Zero of the count. If ZF = 0, go to step 6, or if ZF = 1 go to next step.
STEP 12: Store the largest data in memory.
STEP 13: Terminate the program.
2. Highest grade
3.BCD and ASCII Number
4. OBJECTIVE :-FIND AND REPLACE PROGRAM
Note: it’s a group project so Max num of the girls in each project should not less than 4
Only one girls need to submit the project and it contain 5 marks try to finish as so as possible and
submit on blackboard last date will be 30th November
Download