Docsity

Timing 8085, Lecture notes of Advanced Computer Architecture

Toggle sidebar
bg1
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.
pf2

Partial preview of the text

Download Timing 8085 and more Lecture notes Advanced Computer Architecture in PDF only on Docsity!

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.
  1. Write an 8085 assembly language program, which adds two three-byte numbers. The first number is stored in memory locations 3800H, 3801H & 3802H and the second number is stored in memory location 3803H, 3804H & 3805H. Store the answer in memory locations 3810H upwards.
  2. Write an 8085 assembly language program, which checks the number in memory location 2800H. If the number is an even number, then put โ€˜FFโ€™ in memory location 2810H, otherwise put โ€˜00โ€™.
  3. Write a program to count the data byte in memory that equal to 55H starting at memory location 2800H through 280FH. Place the count value in B register.15.
  4. Write an 8085 assembly language program to find the smallest value between two number in memory location 2800H and 2801. Store the value in memory location 3000H.
  5. Write a program to calculate the sum of a series of numbers. The length of the block is in memory location 2102H and the series itself begins in memory location 2103H. Store the sum in memory locations 2100H and 2101H (MSB byte in 2101H).
  6. Write a program to find the largest element in a block of data. The length of series is in memory location 2501H and the block itself begins in memory location 2502H. Store the largest value in memory locations 2500H. Assume that the numbers in the block are all 8-bit unsigned binary numbers.
  7. The following block of data is stored in memory locations from 3055H to 305AH. Write a program to transfer the block of data in reverse order at same memory location.

DATA (HEX): 22, A5, B2, 99, 7F, 37

  1. Read one byte data from memory location 2200H. Determine the number of bit 1โ€™s in the data and store the result at memory location 2201H.
  2. Write a program to multiply two 8-bit unsigned numbers. Store the result in memory locations 2A00H and 2A01H (MSB byte in 2A01H).