Lab 5
Lab 5
Run this program in full speed and see the output in the port A. What will happen if the
value in the register B is changed? Modify the program when the result exceeds 8-bit.
Run this program and note down the quotient and remainder.
Can you write a program that implements the division using the shifting? Try to
implement the division using the other technique.
Assignments
1. Write a program that takes a number from memory address 9000h, and stores the
multiplication table of the corresponding number in memory address from 9001h
to 900Ah. (The number at memory address 9000h will not exceed twenty-five.)
2. 16 bit data are stored in two tables starting at 8040h and 8060h having ten data
each. Write an 8085 program to store the sum in the corresponding index of the
third table starting at 8080h. ( Assume the sum will not exceed 16 bit)
3. A table contains ten 8-bit data starting at 9000h. Write an 8085 program to
transfer the data from this table to next table starting at 9020h if the number is
greater than 40h and less than C0h, else store 00h.
Optional Assignments:
4. A table contains ten 8-bit data starting at 8050h. Write an 8085 program to store
the sum of odd numbers at 8060h and store the sum of even numbers at 8070h.
5. A table contains ten 8-bit numbers from memory location 9500h; Write a program
to arrange in descending order.