Found 475 Articles for 8085

Program to perform bubble sort based on choice in 8085 Microprocessor

Arnab Chakraborty
Updated on 09-Oct-2019 07:00:44

185 Views

Here we will see one 8085 microprocessor program that will help to arrange the numbers in ascending or descending order based on our choice. Sort using bubble sort technique.Problem Statement −Write an 8085 Assembly language program to perform bubble sorting operation on a set of data, and arrange them into ascending or descending order based on choice.Discussion −In this program we are arranging some numbers into ascending or descending order based on some choice. We are storing the choice at location A000H. If the choice value is 00H, then data will be sorted in ascending order, otherwise it will be sorted in ... Read More

Program to perform bubble sort in ascending order in 8085 Microprocessor

Arnab Chakraborty
Updated on 09-Oct-2019 06:57:41

357 Views

Here we will see one 8085 program to arrange a block of numbers in ascending order.Problem Statement −Write an 8085 program to sort numbers in ascending order where n number of numbers are stored in consecutive memory locations starting from 8041H and the value of n is available in memory location 8040H (Using BUBBLE sort).Discussion −In this program we will arrange the numbers in bubble sorting technique. In this sorting technique, it will be executed in different pass. In each pass the largest number is stored at the end of the list. Here we are taking the numbers from location 8041H to ... Read More

Program to do an operation on two BCD numbers based on the contents of X in 8085 Microprocessor

Arnab Chakraborty
Updated on 09-Oct-2019 06:55:46

345 Views

Here we will see one 8085 program. This program will perform different operations on BCD numbers based on choice.Problem Statement −Write an 8085 Assembly language program to perform some operations on two 8-bit BCD numbers base on our choice.Discussion −In this program we are taking a choice. The choice value is stored at memory location 8000H (named as X). And the BCD numbers are stored at location 8001H and 8002H. We are storing the result at location 8050H and 8051H.Here if the choice is 00H, then it will perform addition, for 01H, it will perform subtraction, and for 02H, it will do ... Read More

Program to convert a 16-bit binary number to BCD in 8085 Microprocessor

Arnab Chakraborty
Updated on 09-Oct-2019 06:52:47

436 Views

Here we will see one 8085 Microprocessor program. This program will be used to convert 16-bit binary data to BCD data.Problem Statement −Write an 8085 Assembly language program to convert 16-bit binary data to BCD data. The binary data is stored at location 8000H and 8001H.Discussion −This problem is solved by implementing 16-bit counter. We are storing the 16-bit number at first, then decreasing the numbers one by one, and increasing the decimal value by adjusting the decimal value. To increase the value, we can use the INR instruction, but INR instruction does not affect the carry flag. So here we are ... Read More

Program for subtraction of multi-byte BCD numbers in 8085 Microprocessor

Arnab Chakraborty
Updated on 09-Oct-2019 06:45:11

314 Views

Here we will see one program that can perform subtraction for multi-byte BCD numbers using 8085 microprocessor.Problem Statement −Write an 8085 Assembly language program to subtract two multi-byte BCD numbers.Discussion −The numbers are stored into memory, and one additional information is stored. It will show us the byte count of the multi-byte BCD number. Here we are choosing 3-byte BCD numbers. They are stored at location 8001H to 8003H, and another number is stored at location 8004H to 8006H. The location 8000H is holding the byte count. In this case the byte count is 03H.For the subtraction we are using the 10’s ... Read More

Program to simulate a real-time clock in 8085 Microprocessor

Arnab Chakraborty
Updated on 05-Oct-2019 07:15:31

434 Views

Here we will see one interesting problem. We will see how to simulate one real-time clock using 8085 microprocessor.Problem Statement −Write an 8085 Assembly language program to simulate real-time clock.Discussion −In this program we are creating a real time clock using 8085MPU. Here we are generating 1s delay to update seconds. This clock is 24Hrs clock. We are initializing the clock from 00:00:00. To display the values into 7-segment display we have to use some Port ICs and correct configurations. In each 60 seconds the minute field is updated, and in each 60 minutes the hour field is updated. For decimal update, ... Read More

Program to alternately display 00 and FF in the data field in 8085 Microprocessor

Arnab Chakraborty
Updated on 05-Oct-2019 07:29:21

395 Views

Here we will see one 8085 microprocessor program. This program will generate 00H and FFH alternatively.Problem Statement − Write an 8085 Assembly language program that can generate 00H and FFH alternatively.Discussion − The 00H and FFH are changed alternatively in each second. So we need one second delay. We have created delay subroutine to generate 1s delay.Note: Here for simplicity we are storing the numbers into memory. To show the numbers, we can use 7 – segment display and other display function for showing it into the display.InputHere we are not providing any input.Flow DiagramProgramAddressHEX CodesLabelsMnemonicsCommentsF000AFLOOPXRA AClear A registerF00132, 50, 80 STA 8050H  Store 00H ... Read More

Program to simulate decimal down counter in 8085 Microprocessor

Arnab Chakraborty
Updated on 05-Oct-2019 07:28:40

596 Views

Here we will see one 8085 Microprocessor program. In this program we will see how to simulate the decimal down counter.Problem Statement −Write an 8085 Assembly language program to simulate decimal down counter. It will count from 9 down to 0, and comeback to 9 again.Discussion −In this section we are simulating the decimal down counter. Here the counter will count 100 decimal numbers from 99 to 0. All values will be updated in each 0.5 seconds. For decimal count we are using the DAA instruction.Note: Here for simplicity we are storing the numbers into memory. To simulate it like a counter ... Read More

Simulate decimal up counter in 8085 Microprocessor

Arnab Chakraborty
Updated on 05-Oct-2019 07:27:42

240 Views

Here we will see one 8085 Microprocessor program. In this program we will see how to simulate the decimal up counter.Problem Statement− Write an 8085 Assembly language program to simulate the decimal up counter. That will count from 0 through 9. Then come back to 0 again.Discussion− In this section we are simulating the decimal up counter. Here the counter will count 100 decimal numbers from 0 to 99. All values will be updated in each 0.5 seconds. For decimal count we are using the DAA instruction. Note: Here for simplicity we are storing the numbers into memory. To simulate it like a ... Read More

Program to perform sorting using selection sort in 8085 Microprocessor

Arnab Chakraborty
Updated on 05-Oct-2019 11:39:08

225 Views

Here we will see one microprocessor program using 8085. In this program we will see how to sort a sequence of numbers using selection sort.Problem Statement −Write an 8085 Assembly language program to sort a given sequence using selection sort in ascending order. The numbers are stored at 8001H onwards. 8000H is holding the block size.Discussion −In the selection sorting technique, we will choose the minimum or the maximum term from a set of numbers. In this case we are considering the sorting in ascending order, so we are choosing the minimum number. By taking the minimum number, we are swapping it ... Read More

Advertisements