Microcontroller Articles

Page 15 of 33

8085 program to subtract two consecutive bytes of an array

George John
George John
Updated on 30-Jul-2019 354 Views

Here we will see how we can subtract two consecutive elements in an array using 8085.Problem StatementWrite 8085 program to subtract two consecutive elements of an array and store them in the same location. The results will be placed at the same location from where they are taken. The numbers are stored from location 8001. The size of array is stored at 8000.DiscussionHere we will solve this problem by using one subroutine. That will subtract two consecutive numbers and stored them into correct position. That subroutine will be called multiple times to subtract all consecutive pairs. The task will be ...

Read More

8085 program to take all numbers whose D7 and D1 are 0

Ankith Reddy
Ankith Reddy
Updated on 30-Jul-2019 441 Views

Here we will see how we can take all numbers whose D7 and D1 bits are 0, using 8085.Problem StatementWrite 8085 program to take all numbers from an array whose D7 and D1 bits are 0. Numbers are stored from 8001, and the array size is stored at 8000. Store the result from 9000 onwards.DiscussionTo solve this problem, we will AND the number by 82H (1000 0010). If the result is 0, then the number is acceptable. If the bit position D7 and D1 are 0, then only the result will be 0.InputAddressData……80000A8001E98002D38003618004AD80052A80061F80075D8008A68009A9800A35…… Flow Diagram ProgramAddressHEX CodesLabelsMnemonicsCommentsF00021, 00, 80 LXI H, 8000Load the ...

Read More

8085 program to take all numbers which are in range 3CH and 64H in an array

Arjun Thakur
Arjun Thakur
Updated on 30-Jul-2019 345 Views

Here we will see we can take all numbers which are in range 3CH and 64H from an array using 8085.Problem StatementWrite 8085 program to take all numbers which are greater or equal to 3CH, and lesser than 64H from an array. Numbers are stored at 8001 onwards, 8000 is holding the size of array, the results will be stored from 9000.DiscussionTo solve this problem, we will take the numbers from memory. Then compare it with 3C. If the Carry flag is set, then it indicates that the number is less than 3C, so just skip it. otherwise compare it ...

Read More

8085 Program to check for two out of five code

Arjun Thakur
Arjun Thakur
Updated on 30-Jul-2019 921 Views

Now let us see a program of Intel 8085 Microprocessor. This program will help us to check a given value is a valid 2 out of 5 code or not.Problem Statement:Write 8085 Assembly language program to check whether a given number is 2 out of five code or not. The number is stored at location 8000H.Discussion:The checking of two out of five code is simple. At first we have to check the higher order three bits are 0 or not. If they are 0, then we will check next five bits. If there are exactly two 1s in these 5-bits, ...

Read More

8085 Program to perform sorting using selection sort

Chandu yadav
Chandu yadav
Updated on 30-Jul-2019 2K+ Views

Now let us see a program of Intel 8085 Microprocessor. In this program we will see how to sort a sequence of numbers using selection sort.Problem Statement:Write 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

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

Chandu yadav
Chandu yadav
Updated on 30-Jul-2019 357 Views

Now let us see a program of Intel 8085 Microprocessor. In this program we will see how to do different operations based on choice.Problem Statement:Write 8085 Assembly language program to perform some operations on two 8-bit binary numbers base on choice.Discussion:In this program we are taking a choice. The choice value is stored at memory location 8000H (named as X). And the 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 ...

Read More

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

George John
George John
Updated on 30-Jul-2019 188 Views

Now let us see a program of Intel 8085 Microprocessor. In this program we will see how to do different operations on BCD numbers based on choice.Problem Statement:Write 8085 Assembly language program to perform some operations on two 8-bit BCD numbers base on 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, ...

Read More

a 8085 Program to perform bubble sort based on choice

Chandu yadav
Chandu yadav
Updated on 30-Jul-2019 796 Views

Now let us see a program of Intel 8085 Microprocessor. In this program we will see how to perform bubble sort in based on choice.Problem Statement:Write 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 descending order. The 8000H is ...

Read More

8085 Program to perform selection sort in ascending order

George John
George John
Updated on 30-Jul-2019 1K+ Views

Now let us see a program of Intel 8085 Microprocessor. In this program we will see how to sort a sequence of numbers using selection sort.Problem Statement:Write 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

8085 Program to perform selection sort in descending order

Ankith Reddy
Ankith Reddy
Updated on 30-Jul-2019 853 Views

Now let us see a program of Intel 8085 Microprocessor. In this program we will see how to sort a sequence of numbers in reverse order using selection sort.Problem Statement:Write 8085 Assembly language program to sort a given sequence using selection sort in descending 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 descending order, so we are choosing the maximum number. By taking the maximum number, we ...

Read More
Showing 141–150 of 321 articles
« Prev 1 13 14 15 16 17 33 Next »
Advertisements