Found 475 Articles for 8085

8085 program to add even parity to a string of 7 bit ASCII characters.

Chandu yadav
Updated on 30-Jul-2019 22:30:26

438 Views

Here we will see how to add even parity to 7-bit ASCII string using 8085.Problem StatementWrite a program to add even parity to a string of 7 bit ASCII characters. The length of the string is in memory location 8040 H and the string itself begins at memory location 8041 H. Place even parity in the most significant bit of each character.Discussion8085 has parity flat. that flag will be used to check and assign parity with each ASCII character. At first we will clear the most significant bit by masking the number with 7FH. Then use OR instruction, as this ... Read More

8085 program with a subroutine to add ten packed BCD numbers.

George John
Updated on 30-Jul-2019 22:30:26

1K+ Views

Here we will see how to add ten packed BCD numbers using 8085.Problem StatementA set of ten packed BCD numbers is stored in the memory location starting from 8040H to 8049H.Write a program with a subroutine to add these numbers in BCD. If a carry is generated save it to register B, and adjust it to BCD. The final sum will be less than 9999BCD. Store the sum at locations 8060H and 8061H.Write a second subroutine to unpack the BCD sum stored in registers A and B, and store them in the OutputBuffer memory starting at 8062H. The most significant ... Read More

8085 program to find bit differences between two binary patterns.

Ankith Reddy
Updated on 30-Jul-2019 22:30:26

123 Views

Here we will see how to find the bit differences of two binary patterns using 8085.Problem StatementTwo binary patterns are stored in locations 8030H and 8031H. Load them in registers A and B. Find out the bit positions where bits are differing and put these location numbers at locations starting from 8050H on words. (Bits are differing at those locations where 0 in A and 1 in B)DiscussionTo solve this problem, we are taking the numbers into A and B. Then initialize the C as counter with 08H, and the register L will keep tract the bit position, where A ... Read More

8085 programs to find 2’s compliment with carry | Set 2

Arjun Thakur
Updated on 30-Jul-2019 22:30:26

1K+ Views

Here we will see how to find 2’s complement with carry.Problem StatementWrite 8085 Assembly language program to find 2’s complement of a number stored in F100 with the carry, and store at F150 and F151.DiscussionIn 8085, there is CMA instruction to complement a number. Then we can add 01 with it to make it 2’s complement. While adding 01 with it, the carry may generate. We will store it to F151, and the actual complemented value will be at F150.InputAddressData……F10008…… Flow Diagram ProgramAddressHEX CodesLabelsMnemonicsCommentsF0003A, 00, F1 LDA F100Hget number from memory to AF0032F CMAget 1's complementF004C6, 01 ADI 01Increase it by 1F0066F MOV L, AStore A ... Read More

8085 program to sum of two 8 bit numbers without carry

Ankith Reddy
Updated on 30-Jul-2019 22:30:26

1K+ Views

Here we will see how to add two 8-bit numbers without carry in 8085.Problem StatementWrite 8085 Assembly language program to perform 8-bit addition without carry. The numbers are stored at F100, and F101. Result will be stored at F102.DiscussionIn 8085, there is ADD instruction to add two numbers. We will set the HL pair to point the numbers, then load accumulator with the number. Then add with ADD M operation which can add items from memory pointed by HL pair and accumulator.InputAddressData……F100CEF10121…… Flow Diagram ProgramAddressHEX CodesLabelsMnemonicsCommentsF00021, 01, F1 LXI H, F100HPoint to get the numbersF0037E MOV A, MLoad first number to AF00423 INX HPoint to ... Read More

8085 program to subtract two BCD numbers

George John
Updated on 30-Jul-2019 22:30:26

3K+ Views

Here we will see how to perform BCD subtractions using 8085.Problem StatementWrite 8085 Assembly language program to perform BCD subtractions of tow numbers stored at location 8001 and 8002. The result will be stored at 8050 and 8051.DiscussionTo subtract two BCD numbers, we are going to use the 10s complement method. Taking the first number and storing into B, Load 99 into A then subtract the number to get the 9’s complement. After that add 1 with the result to get 10’s complement. We cannot increase using INR instruction. This does not effect on CY flag. So we have to ... Read More

8085 program to separate (or split) a byte into two nibbles

Chandu yadav
Updated on 30-Jul-2019 22:30:26

1K+ Views

Here we will see how to split two nibbles of an 8-bit number.Problem StatementWrite 8085 Assembly language program to split two nibbles of an 8-bit number. Number is stored at F050, we will store result at F051 and F052.DiscussionTo get the nibbles separately, at first we are taking number into B register as a copy. Now mask upper nibble to get lower nibble and store it, then take the number from B again, mask lower nibble to get upper nibble, then rotate it four times to make it lower order nibble, after that store it to another location.InputAddressDataF05035 AddressDataF050BE Flow Diagram ProgramAddressHEX CodesLabelsMnemonicsCommentsF0003A, ... Read More

8085 program to print the table of input integer

Arjun Thakur
Updated on 30-Jul-2019 22:30:26

421 Views

In this program we will see how to generate table of an integer.Problem StatementWrite 8085 Assembly language program to generate a table of input integer. The number is stored at F050, and the table will be stored at F051 onwards.DiscussionTable generation is basically the multiplication table creation. We are taking the number and storing it to B. And initialize the counter as 0A (10 in decimal). In each step we are adding B with A and store value of A into memory, and decrease the counter by 1. These steps will repeat until the counter become 0.InputAddressData……F0504…… Flow Diagram ProgramAddressHEX CodesLabelsMnemonicsCommentsF00021, 50 ... Read More

8085 program to perform AND operation in nibbles of 8 bit number

Ankith Reddy
Updated on 30-Jul-2019 22:30:26

372 Views

Here we will see how to AND two nibbles of an 8-bit number.Problem Statement:Write 8085 Assembly language program to perform AND operation of two nibbles of an 8-bit number. Number is stored at F050, we will store result at F051.DiscussionTo get the nibbles, we have to mask at first. So we need to mask the lower nibble and upper nibble and store them into different registers. The upper nibble will be shifted to the right four bits to make it lower nibble. Then we can perform the AND operation, and store it to the memory location F051.InputAddressDataF05035 AddressDataF050BE Flow Diagram ProgramAddressHEX CodesLabelsMnemonicsCommentsF0003A, 50 ... Read More

8085 program to find the set bit of accumulator

George John
Updated on 30-Jul-2019 22:30:26

315 Views

Here we will see how to find the place of the set bit of the Accumulator data.Problem StatementWrite 8085 Assembly language program to find the position where the bit is 1. In the accumulator all bits are 0, but only one bit is 1. We have to get the position of the bit which is 1. The position will be displayed in decimal from 1 to 8.DiscussionWe are taking the number like (0010 0000). The place value is 6. So we are rotating the number to the right through carry. If the carry bit is 1, then we break the ... Read More

Previous 1 ... 4 5 6 7 8 ... 48 Next
Advertisements