Execute Program and Check Result in 8085 Microprocessor

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

5K+ Views

Here 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 in different kits of different manufacturers)The following table will show the functionalities of different control keys. There are 16 alphanumeric keys (0-9, A-F) to provide data and address −KeysFunctionalitiesRESETReset the systemVCT INTVector Interrupt. It generates hardware interrupt RST 7.5 via keypadSHIFTProvides second level commands to all keysGOExecute the programSIExecute in Single Step ModeEXREGExamine Register. It ... Read More

Multiply Two 16-Bit Binary Numbers in 8085 Microprocessor

Arnab Chakraborty
Updated on 09-Oct-2019 07:18:22

1K+ Views

Here we will see one program for Intel 8085 Microprocessor. This program will calculate the multiplication of two 16-bit numbers.Problem Statement −Write an 8085 Assembly language program to multiply two 16-bit numbers stored at 8000H - 8001H and 8002H - 8003H.Discussion −This program takes the 16 bit data from memory location 8000H – 8001H and 8002H – 8003H. The 32 bit results are stored at location 8050H – 8053H.Here we have tested with two 16 bit numbers. The results are as follows.1111H × 1111H = 01234321H 1C24H × 0752H = 00CDFF88HInputfirst inputAddressData……800011800111800211800311……second inputAddressData……80002480011C800252800307……Flow DiagramProgramAddressHEX CodesLabelsMnemonicsCommentsF00031, 00, 20LXI SP, 2000HInitialize Stack pointerF0032A, 00, 80LHLD ... Read More

Multiply Two 2-Digit BCD Numbers in 8085 Microprocessor

Arnab Chakraborty
Updated on 09-Oct-2019 07:14:56

729 Views

Here we will see 8085 Microprocessor program, that will find the multiplication result of two BCD numbers.Problem Statement −Write an 8085 Assembly language program to find two BCD number multiplication. The numbers are stored at location 8000H and 8001H.Discussion −In this program the data are taken from 8000H and 8001H. The result is stored at location 8050H and 8051H.As we know that 8085 has no multiply instruction so we have to use repetitive addition method. In this process after each addition we are adjusting the accumulator value to get decimal equivalent. When carry is present, we are incrementing the value of MS-Byte. ... Read More

Multiply Two 8-bit Numbers using Shift and Add Method in 8085 Microprocessor

Arnab Chakraborty
Updated on 09-Oct-2019 07:12:17

940 Views

Let us see one 8085 Microprocessor problem. In this problem we will see how to multiply two numbers using shift and add methods, not by using additive approach.Problem Statement −Write an 8085 Assembly language program to multiply two 8-bit numbers using shift and add method.Discussion −The shift and add method is an efficient process. In this program, we are taking the numbers from memory location 8000H and 8001H. The 16 bit results are storing into location 8050H onwards.In this method we are putting the first number into DE register pair. The actual number is placed at E register, and D is holding ... Read More

Add Contents of N Word Locations in 8085 Microprocessor

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

384 Views

Here we will see one 8085 Microprocessor program. This program will add the contents of N word locations.Problem Statement −Write an 8085 Assembly language program to add N 16-bit numbers stored into memoryDiscussion −The 16-bit numbers are stored into memory location 8001H onwards. The value of N is stored at location 8000H. After addition, the result will be stored at location 8050H onwards.In 8085 we have few number of registers. So we are storing the count into memory, when we need to update it, we will fetch it from memory, update it and then again store it into memory.Here the 16-bit numbers ... Read More

Selection Sort in Descending Order in 8085 Microprocessor

Arnab Chakraborty
Updated on 09-Oct-2019 07:07:59

400 Views

Here we will see one 8085 Microprocessor program. This program will sort a sequence of numbers in reverse order using selection sort technique.Problem Statement −Write an 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 are swapping it with the ... Read More

Selection Sort in Ascending Order in 8085 Microprocessor

Arnab Chakraborty
Updated on 09-Oct-2019 07:04:27

533 Views

Here we will see one 8085 Microprocessor program. 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 with ... Read More

Bubble Sort in 8085 Microprocessor Based on User Choice

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

524 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

Bubble Sort in Ascending Order using 8085 Microprocessor

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

645 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

Operation on Two BCD Numbers in 8085 Microprocessor

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

483 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

Advertisements