- Develop an assembly language program for 89c51to do following {Marks 10}
- Store any 8 values of one byte each anywhere in Scratch Padarea of RAM. You are bound to use loop to store values.
- Find Mean of these 8 values (use shift operator for division)and send it to port P2 (formula for to find mean is givenbelow)
- Find the lowest number among the numbers saved in part (1),take its 2’s complement and send it to P3
Formula for mean
?=i=1nXin
Where X is values,and n is total number of values
- Develop an assembly language program for 89c51to do following
- Store any 8 values of one byte each anywhere in Scratch Padarea of RAM. You are bound to use loop to store values.
- Find Mean of these 8 values (use shift operator for division)and send it to port P2 (formula for to find mean is givenbelow)
- Find the lowest number among the numbers saved in part (1),take its 2’s complement and send it to P3
Formula for mean
?=i=1nXin
Where X is values,and n is total number of values