Welcome to Scribd. Sign in or start your free trial to enjoy unlimited e-books, audiobooks & documents.Find out more
Download
Standard view
Full view
of .
Look up keyword
Like this
0Activity
0 of .
Results for:
No results containing your search query
P. 1
Microprocessor Lab 789 Tut 86 Combined

Microprocessor Lab 789 Tut 86 Combined

Ratings: (0)|Views: 4|Likes:
Published by Prakash Aryal
microprocessor 8085 and 8086 combined tutorials
microprocessor 8085 and 8086 combined tutorials

More info:

Published by: Prakash Aryal on Sep 27, 2012
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

11/29/2012

pdf

text

original

 
 
Tutorial Problems Set 1 (8085 based)1. Write an 8085 program to add ten numbers stored in consecutive memory addressstarting from 8067H and store the sixteen bit result at the end of the table.2. Write an 8085 program to add ten numbers stored in the consecutive memorylocations starting from 8081H and display the result in the two output ports. (you canassume any address for the port)3. Add all the positive numbers stored in the memory location 80A1H to 80AAH.Display the 16-bit result in any ports.4. Add all the numbers with bit D5 and D3, 1 and 0 respectively, stored in thememory location 90B1H to 90BAH. Display the 16-bit result in any ports.5. There are two table of data stored at 80A1H and 80B1H having ten data each.Write a program to store the data in the first table to third table starting from address80C1H if the corresponding data in the first table is greater than the second table elsestore FFH in the third table.6. Sixteen bit data are stored in two tables starting at 8050H and 8070H, ten data ineach table. Add corresponding data and store it in the third table starting at 8090H.(Never forget the reverse order convention in storing the 16-bit data)7. Add sixteen bit data stored in two tables and store the result in the correspondingindex of the third table if the result in the corresponding index of the third table onlyif the result is greater than 00FFH, else store 0000H (you can assume any address forthe tables)8. In two tables 16-bit data are stored, each table having ten numbers each. Subtractthe data from one table to other and store the result in the third table.9. Subtract ten 16-bit data stored in one table from the other. Store the result in thethird table if the result is positive else store 00.10. Transfer ten data, which has bit D5 and D0, 0 and 1 respectively from A430H toA440H, else store 00 instead of transformation.11. Transfer ten data with even parity from location 9270H to 9280H, else transfer thedata by clearing bit D7 and setting bit D2.12. Data is stored from 8040H to 8050H. Transfer the data to other location in reverseorder.13. Add ten 16-bit numbers stored in a table at 9500H and store the 24-bit result at theend of the table.14. Data is stored from 8050H to 805AH. Insert 5 data after 8055H taking from 8040H,
 
but do not lose the previous content. 15. Ten data are stored from 8080H. Transfer thefirst 5 numbers at the end of thesecond table and the rest at the starting of it.16. Transfer data from 9050H to 9060H only if data is between 30H and 70H else store00H in the next table.17. Transfer data from 8250H to 8260H if the number is less than 50H and greater than80H else store 00H in the destination table.18. Write a program to count the number of ones of table of ten sixteen bit numbers at8240H and store the count of one
s in corresponding location of a table at 8260H19. Write a program to convert binary numbers stored in a table at 8560h to BCDnumbers and store the result in the second table at 8570H. Assume no number isgreater than 63H (99D).20. Write a program to convert ten BCD numbers stored at 8350H to binary and storethe result at 8360H.21. Ten data are stored in memory location starting at 8345H. Write a program toconvert binary number to BCD number and store the result in the second table in thememory location starting at 8445H if the result is less than hundred.Tutorial Problems Set 2 (8086 based)1. Write an assembly language program to add all the elements of a table, which arebetween 50 and 150 only. Display the result as the decimal value.2. A table of numbers is stored in memory. Write an assembly language program toadd numbers from the table, which are between 30 and 100. Display the result inhex format.3. Write an assembly language program to get text input and display it on the centerof a clear screen.4. Write an assembly language program to accept string input and convert to uppercase if it has lower case letters.5. Write an assembly language program to get input and display on location 10,20 onthe screen6. Write an assembly language program to convert the text stored in memory touppercase only if the characters are found in lower case. Display the converted text in thescreen.
 
7. Write an assembly language program to convert the text stored in the memory tolower case if the characters are in upper case. Display the result text in the screen8. Write a program to add the sequence 1+3-+-4+... up to 100 steps display the resultin hexadecimal format.9. Write a program to add the sequence 1+3+4+... up to the desired steps entered bythe user and display the result in decimal format. Assume user enters numbers from1 to 9.10. Write an assembly language program to display graphical ASCII characters from32 to 127 on a defined window (5,10 and 20,70) with white on blue attribute. 11. Youhave an array of data in one table. Change each element to decimal ASCII andstore it in the next table. Display the final result in the clear screen.12. Write an assembly language program to count the number of vowels in a stringentered by the user. Display the result in decimal format.13. Write an assembly language program to convert the vowels to uppercase from astring entered by the user.14. Write an assembly language program to get string input from the user convert it tocapital case display the attributed string at the center of the defined window (2,10 to22,70).15. Write an assembly language program to get string input from the user convert it tolower case display the attributed string at the lower left comer of the definedwindow (3,10 to 21,10).16. Write an assembly language program that takes a string input from user and clearthe screen and move the string from right edge of the screen to left edge. Themovement should be noticeable.17. Write an assembly language program to generate a multiplication table of anynumber entered by the user. Display the table in the screen.
7.1TITLE to dispay string using string display function
.MODEL SMALL.STACK 32.DATASTRING DB "Programming is Fun",0DH,0AH,'$'.CODEMAIN PROC FAR

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->