Sunteți pe pagina 1din 5

MICROPROCESSOR LAB - EXPERIMENTS

EXPERIMENT: 1 8 bit /16 bit data transfer


1.

Write an ALP using 8085 to transfer 45H from location 4500H to location 4550H and transfer 65H from location 4600H to 4650H. 2. Write an ALP using 8085 to transfer 45H to locations 4500H,4502H,4504H, ..4550H and transfer 55H to locations 4501H,4503H, .454FH 3. Write an ALP using 8085 to do the following Before Execution After Execution 4500H 45H 4501H 46H 4502H 47H 4503H 48H 4504H 49H
4.

4700H 45H 4701H 46H 4702H 47H 4703H 48H 4704H 49H

Write an ALP using 8085 to do the following Before Execution 4500H 45H 4501H 46H 4502H 47H 4503H 48H 4504H 49H

After Execution 4700H 49H 4701H 48H 4702H 47H 4703H 46H 4704H 45H

5.

Write an ALP using 8085 to do the following Before Execution 4500H 45H 4501H 46H 4502H 47H

After Execution 4500H 49H 4501H 48H 4502H 47H

4503H 48H 4504H 49H

4503H 46H 4504H 45H

6.

Write an ALP using 8085 to do the following Before Execution 4500H 45H 4501H 46H 4502H 57H 4503H 68H After Execution 4500H 49H 4501H 48H 4502H 67H 4503H 66H 4700H 45H 4701H 46H 4702H 57H 4703H 68H 4700H 49H 4701H 48H 4702H 67H 4703H 66H

7.

Write an ALP using 8085 to do the following Before Execution 4500H 45H 4501H 46H 4502H 57H 4503H 58H 4504H 79H 4505H 69H

After Execution 4500H 46H 4501H 45H 4502H 58H 4503H 57H 4504H 69H 4505H 79H

8.

Write an ALP using 8085 to do the following Before Execution 4500H 45H 4501H 46H

After Execution 4500H 02H+45H 4501H 02H+46H

4502H 57H 4503H 58H 4504H 79H 4505H 69H


9.

4502H 02H+57H 4503H 02H+58H 4504H 02H+79H 4505H 02H+69H

Write an ALP using 8085 to do the following i. Transfer the data 1569H to location 5060H and 5061H.Transfer another data 1345H to location 5070H and 5071H. Exchange the data .So after execution data 1345H is available in location 5060H and 5061H and data 1569H is available in location 5070H and 5071H. ii. Now transfer the data in location 5060H, 5061H, 5070H and 5071H to Location 5080H, 5081H, 5082H & 5083H respectively. 10. Write an ALP using 8085 to do the following i. Exchange the data available in location 5070H,5071H with 5080H,5081H ii. Exchange the data available in location 5072H,5073H with 5082H,5083H iii. Exchange the data available in location 5074H,5075H with 5084H,5085H iv. Exchange the data available in location 5076H,5077H with 5086H,5087H v. Exchange the data available in location 5078H,5079H with 5088H,5089H

11. Write an ALP using 8085 to do the following

Before Execution 4500H 45H 4501H 46H 4502H 57H 4503H 58H 4504H 79H 4505H 69H

After Execution 4500H 02H+69H 4501H 02H+79H 4502H 02H+58H 4503H 02H+57H 4504H 02H+46H 4505H 02H+45H

EXPERIMENT: 2
TWO 8 BIT ADDITION, SUBTRACTION, MULTIPLICATION, DIVISION 1. Load two values in location 4700H and 4701H consecutively. If location 4900H is loaded with 00H - do addition

01H do subtraction 02H do multiplication 03H do division 04H exit Store the result in location starting from 4A00H.Write an ALP using 8085. 1. Raju bought 5 books for Rs.200/=, 5 chocolates for Rs.150/=.Write an ALP using 8085 to do the following. What is the total money Raju spent? , store it in the location 4500H and 4501H.Money difference between two items? , store in location 4502H and 4503H. What is the cost of each book? , store it in location 4504H and 4505H.What will be the cost of 10 books? Store it in location 4506H and 4507H. 1. Let x1=02H, x2=05H, y1=06H, y2=07H. Write an ALP using 8085 to compute the following Value = (((x1+y1)-(x2+y2))/x1)*y2. Store the value in location 4600H and 4601H. 1. A bundle of A4 sheet has 250 sheets. The cost of 50 A4 sheet is Rs.10/=. How many 50 sheets of A4 form a bundle? , store the result in location 4500H. What is the cost of a bundle?, store the result in location 4501H and 4502H.Cost of another bundle of A4 sheet is Rs.70/=.What is the total cost of two bundles?,store the result in location 4503H and 4504H. What is the difference of cost for the two bundles?,store the result in location 4505H and 4506H.Write an ALP using 8085. 1. Write an ALP using 8085 to calculate the area of a rectangle, having a length of 25 cm and breadth of 10 cm .Add 20 cm along with the area . subtract 30 cm from the total area. Divide the total area by 12 cm. Store the resultant area in any location.

1. Write an ALP using 8085 to do the following

Sub1 Total No. of Students Passed Class Average 54 61

Sub2 56 65

Sub3 53 59

Sub4 57 62

Sub5 59 69

Sub6 54 59

Total number of students: 59.Calculate the overall pass percentage of the class, no.of failures in sub4, what will be the class total marks of all students for sub1?

1. A man has Rs.42 with him, he gave Rs.20 to his wife .How much he is having now? His wife has twice of Rs.20 and thrice of Rs.30, how much she has? How much money in total both have? Share the total money between both of them equally. Store all the result in memory location consecutively. 1. Let x1=04H, x2=05H, y1=08H, y2=0AH. Write an ALP using 8085 to compute the following Value = (((x1*y1) +(x2-y2))*x1)/y2. Store the value in location 4600H and 4601H. 1. If location 4500H has 35H do addition 45H do multiplication 55H do division 65H do subtraction Store the result in location 4600H and 4601H. 1. Let x1=02H,x2=03H,x3=06H,x4=07H , do the following 4500H x1+X4 4600H x3*(x4/x2) 4700H (x4+x2)-x3

S-ar putea să vă placă și