
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
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
9 questions
Module 2 Lesson 2B: Creating your RESUME
Presentation
•
12th Grade
9 questions
Gamification in Language Learning
Presentation
•
University
Popular Resources on Wayground
24 questions
PBIS-HGMS Day 10
Quiz
•
6th - 8th Grade
10 questions
HCS SCI 03 Summer School Review 3
Quiz
•
3rd Grade
11 questions
Home Scope
Quiz
•
7th - 8th Grade
15 questions
HCS SCI 05 Summer School Assessment 3 Review
Quiz
•
5th Grade
35 questions
Lufkin Road Middle School Student Handbook & Policies Assessment
Quiz
•
7th Grade
18 questions
Geo 11.3 Area of Circles and Sectors
Quiz
•
9th - 11th Grade