Web view15.03.2017 · mIcroControLLer. Is . mY. FavouRite. SubJect ’. ... (c) Draw...

2
Assignment Questions (15CS44) Module-2 Q1. Describe the following instruction with suitable examples: a.SBB b.LOOP c.DIV d.MUL e.SHR f.CMP g.DAA h.DAS Q2. Explain the following assembler directives with example of each: a. PTR Q3. Write a program to calculate the total sum of five words of data. Each data value represents the yearly wages of a worker. This person does not make more than $65,555 (FFFFH) a year. The decimal data is as follows: 27345,28521,29533,30105, and 32375. Q4. Assume that there is a class of five people with the following grades: 69, 87, 96, 45, and 75. Find the highest grade. Q5. Write an ALP program to convert the given string of ASCII character into lower case. The given string is ‘MicroProceSsors anD mIcroControLLer Is mY FavouRite SubJect’. Q6. Write an ALP to find the number of ovals in a given string. Q7. Write an ALP to convert given two-ASCII character into unpacked BCD and packed BCD. Q8. Write the procedure to convert the packed BCD to it binary equivalent. Q9. With neat diagram explain the all rotate instruction with an example of each. Q10. Write an ALP to count number of 0’s and 1’s from given 8-bit binary number. Q11. Program to combines INT l0H and INT 21H. The program does the following: (1) clears the screen, (2) sets the cursor to the centre of the screen, and (3) starting at that point of the screen, displays the message "This is a test of the display routine". Q12. Write a program to: (a) Clear the screen. (b) Set the mode to CGA of 640 x 200 resolution. (c) Draw a horizontal line starting at column = 100, row = 50, and ending at column 200, row 50.

Transcript of Web view15.03.2017 · mIcroControLLer. Is . mY. FavouRite. SubJect ’. ... (c) Draw...

Page 1: Web view15.03.2017 · mIcroControLLer. Is . mY. FavouRite. SubJect ’. ... (c) Draw a horizontal line starting at column = 100, row = 50, and ending at column 200

Assignment Questions (15CS44)

Module-2

Q1. Describe the following instruction with suitable examples:a. SBBb. LOOPc. DIVd. MULe. SHRf. CMPg. DAAh. DAS

Q2. Explain the following assembler directives with example of each:a. PTR

Q3. Write a program to calculate the total sum of five words of data. Each data value represents the yearly wages of a worker. This person does not make more than $65,555 (FFFFH) a year. The decimal data is as follows: 27345,28521,29533,30105, and 32375.

Q4. Assume that there is a class of five people with the following grades: 69, 87, 96, 45, and 75. Find the highest grade.

Q5. Write an ALP program to convert the given string of ASCII character into lower case. The given string is ‘MicroProceSsors anD mIcroControLLer Is mY FavouRite SubJect’.

Q6. Write an ALP to find the number of ovals in a given string.Q7. Write an ALP to convert given two-ASCII character into unpacked BCD and packed BCD.Q8. Write the procedure to convert the packed BCD to it binary equivalent.Q9. With neat diagram explain the all rotate instruction with an example of each.Q10.Write an ALP to count number of 0’s and 1’s from given 8-bit binary number.Q11.Program to combines INT l0H and INT 21H. The program does the following: (1) clears the

screen, (2) sets the cursor to the centre of the screen, and (3) starting at that point of the screen, displays the message "This is a test of the display routine".

Q12.Write a program to: (a) Clear the screen. (b) Set the mode to CGA of 640 x 200 resolution. (c) Draw a horizontal line starting at column = 100, row = 50, and ending at column 200, row 50.

Q13. Write program to performs the following, (1) clears the screen, (2) sets the cursor at the beginning of the third line from the top of the screen, (3) accepts the message "IBM perSonal COmpute' from the keyboard,(4) converts lowercase letters of the message to uppercase, (5) displays the converted results on the next line.

Q14. Write an ALP to validate a password. Assume that correct password is MICROPROCESSOR. (Hint use INT 21H, 07 Function)

Q15. Write program that accepts the user name. The name can have a maximum of eight letters. After the name is typed in, the program gets the length of the name and prints it to the screen.

Q16. Write a program to perform the following: (1) clear the screen (2) set the cursor at row 5 and column 1 of the screen, (3) prompt "There is a message for you from Mr. Jio. To read it enter Y ". If the user enters 'Y' or 'y' then the message "Hi! I must leave town tomorrow, therefore I will not be able to see you" will appear on the screen. If the user enters any other key, then the prompt "No more messages for you" should appear on the next line.

Page 2: Web view15.03.2017 · mIcroControLLer. Is . mY. FavouRite. SubJect ’. ... (c) Draw a horizontal line starting at column = 100, row = 50, and ending at column 200

Q17.Develop an assembly language program to reverse a given string and verify whether it is a palindrome or not. Display the appropriate message.

Q18.Design and develop an assembly language program to read the current time and Date from the system and display it in the standard format on the screen.

Q19.List and describe the steps a 8086 will take when it responds to interrupt. Describe the interrupt vector table (IVT).

Q20.Differentiate between INT and CALL instructions.Q21.Explain the following interrupt types. (i) Type 00 (ii) Type 01 (iii) Type 02 (iv) Type 03 (v) Type

04