Found 475 Articles for 8085

8085 Program to Exchange 10 bytes

Anvi Jain
Updated on 30-Jul-2019 22:30:24

3K+ Views

In this program we will see how to exchange a block of 10-byte data using 8085.Problem StatementWrite 8085 Assembly language program to exchange a block of data, where block size is 10.DiscussionThe data are stored at location 8010H to 8019H and 9010H to 9019H. The location 8000H is holding the number of bytes to exchange. In this case number of bytes are 10D so it will be 0AH.The logic is very simple, The HL and DE register pair is pointing the first and second data block respectively. By taking the data we are just swapping the values of each memory ... Read More

8085 Program to Divide a 16-bit number by an 8-bit number

Vrundesha Joshi
Updated on 30-Jul-2019 22:30:24

3K+ Views

In this program we will see how to divide a 16-bit number by an 8-bit numberProblem StatementWrite 8085 Assembly language program to divide a 16-bit number by an 8-bit number.DiscussionIn this program we are taking the 16-bit number from 8000H and 8001H. The 8000H is holding the lower order byte and 8001H is holding higher order byte. The8002H is holding the 8-bit numerator. After dividing the number the16-bit quotient is stored at location 8050H and 8051H. The remainderis stored at 8052H.InputAddressData......80002B8001CA800253......Flow DiagramProgramAddressHEX CodesLabelsMnemonicsCommentsF00021, 00, 80LXI H, 8000HPoint 8000HaddressF0037EMOV A, MStore the lower order byteF00423INX H   Increase the HL pair to ... Read More

8085 Executing the program and checking result

Rishi Rathor
Updated on 30-Jul-2019 22:30:24

5K+ Views

In this section we will see how to use 8085 to write a program in 8085 kit. We will also see how to debug the program and check the result after successful execution. Let us see a typical keypad structure of 8085 kit. (This keyboard pattern may vary indifferent kits of different manufacturers)The following table will show the functionalities of different control keys. There are 16alphanumeric keys (0-9, A-F) to provide data and address −KeysFunctionalitiesRESETReset the systemVCT INTVector Interrupt. It generates hardware interruptRST 7.5 via keypadSHIFTProvides second level commands to all keysGOExecute the programSIExecute in Single Step ModeEXREGExamine Register. It allows ... Read More

8085 Program to convert HEX to BCD

Jennifer Nicholas
Updated on 30-Jul-2019 22:30:24

5K+ Views

In this program we will see how to convert binary numbers to its BCD equivalent.Problem StatementA binary number is store dat location 800H. Convert the number into its BCD equivalent and store it to the memory location 8050H.DiscussionHere we are taking a number from the memory, and initializing it as a counter. Now in each step of this counter we are incrementing the number by 1, and adjust the decimal value. By this process we are finding the BCD value of binary number or hexadecimal number.We can use INRinstruction to increment the counter in this case but this instruction will ... Read More

8085 Program to convert BCD to HEX

Anvi Jain
Updated on 30-Jul-2019 22:30:24

3K+ Views

In this program we will see how to convert BCD numbers to binary equivalent.Problem StatementA BCD number is stored at location 802BH. Convert the number into its binary equivalent and store it to the memory location 802CH.DiscussionIn this problem we are taking a BCD number from the memory and converting it to its binary equivalent. At first we are cutting each nibble of the input. So if the input is 52 (0101 0010) then we can simply cut it by masking the number by 0FH and F0H. When the Higher order nibble is cut, then rotate it to the left ... Read More

8085 Program to perform bubble sort in descending order

Vrundesha Joshi
Updated on 30-Jul-2019 22:30:24

6K+ Views

In this program we will see how to sort a block of bytes in descending order using bubble sorting technique.Problem StatementWrite8085 Assembly language program to sort numbers in descending 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).DiscussionIn 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 smallest number is stored at the end of the list. Here we are taking the numbers ... Read More

8085 Program to perform bubble sort in ascending order

Jennifer Nicholas
Updated on 30-Jul-2019 22:30:24

16K+ Views

In this program we will see how to sort a block of bytes in ascending order using bubble sorting technique.Problem StatementWrite8085 Assembly language 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).DiscussionIn 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 ... Read More

8085 Program to perform sorting using bubble sort

Rishi Rathor
Updated on 30-Jul-2019 22:30:24

494 Views

In this program we will see how to sort a block of bytes using bubble sorting technique.Problem StatementWrite8085 Assembly language 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).DiscussionIn 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 ... Read More

8085 Program to convert two-digit hex to two ASCII values

Anvi Jain
Updated on 30-Jul-2019 22:30:24

222 Views

Now let us see a program of Intel 8085 Microprocessor. This program will convert 8-bit numbers to two digit ASCII values.Problem StatementWrite 8085 Assembly language program where an 8-bit binary number is stored in memory location 8050H. Separate each nibbles and convert it to corresponding ASCII code and store it to the memory location 8060H and 8061H.DiscussionIn this problem we are using a subroutine to convert one hexa-decimal digit (nibble) to its equivalent ASCII values. As the 8-bit number contains two nibbles, so we can execute this subroutine to find ASCII values of them. We can get the lower nibble ... Read More

8085 program to generate Fibonacci sequence

Rishi Rathor
Updated on 30-Jul-2019 22:30:24

5K+ Views

In this program we will see how to generate Fibonacci sequence.Problem StatementWrite 8085 Assembly language program to generate the first ten elements of the Fibonacci sequence using registers only and store them in memory locations 8050H to 8059H. DiscussionThis program will generate the Fibonacci numbers. The Fibonacci numbers follows this relation F(i) = F(i - 1) + F(i - 2) for all i >2 with F(1) = 0, F(2) = 1.InputIn this case we are not providing any input, this program will generate ten Fibonacci numbers.Flow DiagramProgramAddressHEX CodesLabelsMnemonicsComments800021, 50, 80STARTLXI H 8050H Pointer to the OUT-BUFFER8003AFXRA A Clear accumulator and reg. B800447MOV B, ... Read More

Advertisements