
Computer Architecture
Presentation
•
Computers
•
University
•
Hard
Jasmine Sharon
Used 4+ times
FREE Resource
11 Slides • 3 Questions
1
COMPUTER ARCHITECTURE
Priyanka R
I.B.Sc.Computer Science
2
FIND THE LARGEST AND THE SMALLEST ELEMENT IN AN ARRAY
3
SYNOPSIS
Aim
Algorithm
Source code
Input
Output
Result
4
AIM
To write an assembly language program for finding the largest and smallest element of an array using 8085.
5
ALGORITHM
Maximum number is stored in B register and Minimum number is stored in C register.
Load counter in D register.
Load starting element in accumulator, B and C register.
Compare accumulator with B register.
If carry flag is not set then transfer contents of accumulator to B. Else, compare accumulator with C register. If carry flag is set, transfer content of accumulator to C.
6
ALGORITHM
Decrement D register.
If D>0 take next element in accumulator and go to point 4.
If D=0,store B and C register in memory.
End of the program.
7
SOURCE CODE
8
INPUT
9
OUTPUT
10
RESULT
Thus, the program to find the largest and the smallest element in an array was executed.
11
Multiple Choice
The AC flag denotes
Auxiliary Carry
Accumulator
12
Multiple Choice
The expansion of MVI
Move
Move Immediate
13
Multiple Choice
The flag P denotes
Parity
Partial
14
COMPUTER ARCHITECTURE
Priyanka R
I.B.Sc.Computer Science
Show answer
Auto Play
Slide 1 / 14
SLIDE
Similar Resources on Wayground
9 questions
Module 2 Lesson 2B: Creating your RESUME
Presentation
•
12th Grade
9 questions
Gamification in Language Learning
Presentation
•
University
10 questions
MC Test 2.2 Study Guide
Presentation
•
12th Grade - University
11 questions
Author's Purpose and Style
Presentation
•
12th Grade - University
7 questions
Translation and interpretation
Presentation
•
University
15 questions
New Electron Models
Presentation
•
9th - 12th Grade
10 questions
DEMOCRACY
Presentation
•
12th Grade
9 questions
Checking Account Balancing
Presentation
•
12th Grade
Popular Resources on Wayground
5 questions
A Home on the Shore
Quiz
•
3rd Grade
28 questions
US History Regents Review
Quiz
•
11th Grade
6 questions
A Horse Tale
Quiz
•
3rd Grade
20 questions
Math Review
Quiz
•
3rd Grade
10 questions
Juneteenth History and Significance
Interactive video
•
5th - 8th Grade
20 questions
Dividing Fractions
Quiz
•
5th Grade
55 questions
A Long Walk to Water Final Review
Quiz
•
6th - 8th Grade
10 questions
Equation Word Problems
Quiz
•
7th Grade