8085 is a Microprocessor which was developed by Intel in 1970s. All the instructions in this microprocessor are encoded in a single byte. Some of the instructions are followed by one or two bytes of data, which can be a memory address, an immediate operand or a port number.
In this post, we will write a program in 8085 to calculate 8-bit sum of N 8-bit numbers.
Start Address <- 2400H C <- M[Address] A <- 0 Address <- Address + 1 A <- A + M[Address] C <- C - 1 If C is not zero, goto 4 Address <- Address + 1 M[Address] <- A Stop
LXI H, 2400H MOV C, M MOV A, 00H BACK: INX H ADD M DCR C JNZ BACK INX H MOV M,A RST 5
2400H: 04 2401H: 01 2402H: 02 2403H: 03 2404H: 04 2405H: 0A -> Output
Check out our other 8085 programs
- Program to Calculate 8-bit Sum of N 8-bit Numbers
- Program to Find the Maximum of N Numbers
- Program to Find the Minimum of N Numbers
- Program to multiply two 8-bit numbers without using shifting multiplicand
- Program to multiply two 8-bit numbers using shifting multiplicand
- Program to divide a 16-bit number with an 8-bit number
- Program to find the HCF of two numbers
- Program to find the HCF of N numbers
- Program to convert binary number to decimal
- Program to convert binary number to decimal without using DAA
- Program to convert decimal to binary
Let us know in the comments if you are having any questions regarding this microprocessor program.
And if you found this post helpful, then please help us by sharing this post with your friends. Thank You