This program finds the largest number in an array. Initially, the counter is initialized with the size of an array. Then, two numbers are moved to registers A and B and compared. After comparison, the largest of two must be in the accumulator. If it is already in the accumulator, then its fine, otherwise it is moved to the accumulator. Counter is decremented and checked whether it has reached zero.
|Country:||Turks & Caicos Islands|
|Published (Last):||23 August 2005|
|PDF File Size:||3.10 Mb|
|ePub File Size:||2.61 Mb|
|Price:||Free* [*Free Regsitration Required]|
Word is defined as the number of bits a microprocessor can recognize. Programs written in machine language can not be understood by most of the people, therefore, we use assembly language. Assembly language has English-like words for a better understanding of the program to common people.
Machine Language:- A number of words for a machine is fixed as the number of bits for a machine are fixed. Instructions are formed my the microprocessor design engineer, who selects a particular combination of words to give them a specific meaning by applying the logic.
It has a word length of 8 bits. Assembly Language:- Mnemonics- is a Greek word meaning memory aid or mindful. Both the machine language and the assembly language are considered low level languages for programming. Find the hexadecimal Machine code for each of the instructions by searching through the set of instructions. Load the program in the user memory in sequential order by using the hexadecimal keyboard peripheral.
Assembler is the mnemonic program that translates the entered ASCII keyboard inputs into the corresponding binary machine code for microprocessor. Interaction between the hardware and the software is managed by a set of programs called operating system. Monitor Program is a code that accepts an input from the keyboard and translate it into its binary equivalent. The Second block includes other 8 bit and 16 bit registers which are available for user.
All the results are stored in the Accumulator, while making respective flip-flops Flags set or reset. It has three Buses:- 8 bit bidirectional Data Bus — transfers data. Control Bus — timing signals. Register are used to store or copy data using data storing and copying instructions.
Normally, result is stored in this register by default.
8085 program to find the factorial of a number
Microprocessor - 8085 Pin Configuration
Program to find the largest number in an array