
EXERCISE
1. Using LDA and STA instructions, write a program that will transfer five
byte of memory from location 3000H through 3004H to location 3200H
through 3204H
2. Write a program to exchange the contents of HL register pair with DE
register pair using MOV instruction.
3. Write a program to swap lower 4 bit nibble with upper 4 bit nibble of 8 bit
data at memory location 2100H and place a result to location 2101H.
4. Write a program using the ADI instruction to add the two hexadecimal
numbers 3AH and 48H and store the result in memory location 2100H.
5. Write a program to subtract the number in the D register from the number
in the E register. Store the result in register C.
6. Write an assembly language program that AND, OR and XOR together
the contents of register B, C and E and place the result into memory location
3000H, 3001H and 3002H.
7. Write a program that store 00H into memory location 2500H through
2510H.
8. Write an assembly language program to add two 8-bit numbers, the sum
may be of 16-bits.
9. Write an 8085 assembly language program using minimum number of
instructions to add the 16 bit number in BC, DE & HL. Store the 16 bit
result in DE.
10. Develop a program in assembly that subtracts the number in the DE
register pair from the number in the HL register. Place the result in BC
register.
11. Sixteen bytes of data are stored in memory locations at 3150H to 315FH.
Write a program to transfer the entire block of data to new memory locations
starting at 3250H.