welcome: test-1 (max. marks=2*5) microprocessor lab (5ee8a ... · 2.07.2016  · welcome: test-1...

Post on 16-May-2020

14 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

Welcome: Test-1 (Max. Marks=2*5) Microprocessor Lab (5EE8A)- 09/09/2016

Note-1: You have to solve the only question having question number similar to the last number of your university roll number. (Ex- solve question number Q1 if you have URN- 14EBKEE001 & Q44 if you have URN-14EBKEE044 etc.) Note-2: Firstly, write the programs on answer sheet with hex code and then use simulator to execute the same. Note-3: In Simulator, start writing Q-(a) program from address 8000H and Q-(b) program from 8050H to avoid overlapping.

Q1. (a) Write an assembly language program to store the data 23H and 02H at memory

locations 9000H and 9001H respectively. Now, store the data of location 9000H in register D and data of location 9001H in register E. Now, save the value of register E at memory location 9002H. Now, store the data of register pair DE in a stack of starting address 9050H. Specify the value of stack pointer at the end of the program on your answer sheet. (b) Write an assembly language program to store the data 89H and 88H at memory locations A000H and A001H respectively. Now, add the numbers and store the result at location A002H. Justify the result and flags by using calculation on your answer sheet.

Q2. (a) Write an assembly language program to store the data 15H and 02H at memory locations 9050H and register E respectively. Now, store these data in a stack of starting address A000H. Specify the value of stack pointer at the end of the program on your answer sheet. (b) Write an assembly language program to store the data 15 and 02 at memory locations 9000H and 9001H respectively. Now, send the data of location 9000H at output port 08H and then add the numbers and store the result at location 9002H and output port 09H. Justify the result and flags by using calculation on your answer sheet.

Q3. (a) Write an assembly language program to store the data 05H and 01H at memory locations 9050H and register E respectively. Now, store these data in a stack of starting address A000H and then copy the stack data in register pair HL. Specify the value of stack pointer at the end of the program on your answer sheet (b) Write an assembly language program to store the data 05 and 02 at memory locations 9000H and 9001H respectively. Now, add the numbers with previous carry and store the result at location 9002H. Justify the result and flags by using calculation on your answer sheet.

Q4. (a) Write an assembly language program to store the data 23H and 02H at memory locations 9000H and 9001H respectively. Now, store the data of location 9000H in

register D and data of location 9001H in register E. Now, save the value of register E at memory location 9002H. Now, store the data of register pair DE in a stack of starting address 9050H. Specify the value of stack pointer at the end of the program on your answer sheet. (b) Write an assembly language program to store the data 89H and 88H at memory locations A000H and A001H respectively. Now, add the numbers and store the result at location A002H. Justify the result and flags by using calculation on your answer sheet.

Q5. (a) Write an assembly language program to store the data 15H and 02H at memory locations 9050H and register E respectively. Now, store these data in a stack of starting address A000H. Specify the value of stack pointer at the end of the program on your answer sheet. (b) Write an assembly language program to store the data 15 and 02 at memory locations 9000H and 9001H respectively. Now, send the data of location 9000H at output port 08H and then add the numbers and store the result at location 9002H and output port 09H. Justify the result and flags by using calculation on your answer sheet.

Q6. (a) Write an assembly language program to store the data 05H and 01H at memory locations 9050H and register E respectively. Now, store these data in a stack of starting address A000H and then copy the stack data in register pair HL. Specify the value of stack pointer at the end of the program on your answer sheet (b) Write an assembly language program to store the data 05 and 02 at memory locations 9000H and 9001H respectively. Now, add the numbers with previous carry and store the result at location 9002H. Justify the result and flags by using calculation on your answer sheet.

Q7. (a) Write an assembly language program to store the data 23H and 02H at memory locations 9000H and 9001H respectively. Now, store the data of location 9000H in register D and data of location 9001H in register E. Now, save the value of register E at memory location 9002H. Now, store the data of register pair DE in a stack of starting address 9050H. Specify the value of stack pointer at the end of the program on your answer sheet. (b) Write an assembly language program to store the data 89H and 88H at memory locations A000H and A001H respectively. Now, add the numbers and store the result at location A002H. Justify the result and flags by using calculation on your answer sheet.

Q8. (a) Write an assembly language program to store the data 15H and 02H at memory locations 9050H and register E respectively. Now, store these data in a stack of starting address A000H. Specify the value of stack pointer at the end of the program on your answer sheet.

(b) Write an assembly language program to store the data 15 and 02 at memory locations 9000H and 9001H respectively. Now, send the data of location 9000H at output port 08H and then add the numbers and store the result at location 9002H and output port 09H. Justify the result and flags by using calculation on your answer sheet.

Q9. (a) Write an assembly language program to store the data 05H and 01H at memory locations 9050H and register E respectively. Now, store these data in a stack of starting address A000H and then copy the stack data in register pair HL. Specify the value of stack pointer at the end of the program on your answer sheet (b) Write an assembly language program to store the data 05 and 02 at memory locations 9000H and 9001H respectively. Now, add the numbers with previous carry and store the result at location 9002H. Justify the result and flags by using calculation on your answer sheet.

Q10. (a) Write an assembly language program to store the data 23H and 02H at memory locations 9000H and 9001H respectively. Now, store the data of location 9000H in register D and data of location 9001H in register E. Now, save the value of register E at memory location 9002H. Now, store the data of register pair DE in a stack of starting address 9050H. Specify the value of stack pointer at the end of the program on your answer sheet. (b) Write an assembly language program to store the data 89H and 88H at memory locations A000H and A001H respectively. Now, add the numbers and store the result at location A002H. Justify the result and flags by using calculation on your answer sheet.

Q11. (a) Write an assembly language program to store the data 15H and 02H at memory locations 9050H and register E respectively. Now, store these data in a stack of starting address A000H. Specify the value of stack pointer at the end of the program on your answer sheet. (b) Write an assembly language program to store the data 15 and 02 at memory locations 9000H and 9001H respectively. Now, send the data of location 9000H at output port 08H and then add the numbers and store the result at location 9002H and output port 09H. Justify the result and flags by using calculation on your answer sheet.

Q12. (a) Write an assembly language program to store the data 05H and 01H at memory locations 9050H and register E respectively. Now, store these data in a stack of starting address A000H and then copy the stack data in register pair HL. Specify the value of stack pointer at the end of the program on your answer sheet (b) Write an assembly language program to store the data 05 and 02 at memory locations 9000H and 9001H respectively. Now, add the numbers with previous carry and store the result at location 9002H. Justify the result and flags by using calculation on your answer sheet.

Q13. (a) Write an assembly language program to store the data 23H and 02H at memory locations 9000H and 9001H respectively. Now, store the data of location 9000H in register D and data of location 9001H in register E. Now, save the value of register E at memory location 9002H. Now, store the data of register pair DE in a stack of starting address 9050H. Specify the value of stack pointer at the end of the program on your answer sheet. (b) Write an assembly language program to store the data 89H and 88H at memory locations A000H and A001H respectively. Now, add the numbers and store the result at location A002H. Justify the result and flags by using calculation on your answer sheet.

Q15. (a) Write an assembly language program to store the data 15H and 02H at memory locations 9050H and register E respectively. Now, store these data in a stack of starting address A000H. Specify the value of stack pointer at the end of the program on your answer sheet. (b) Write an assembly language program to store the data 15 and 02 at memory locations 9000H and 9001H respectively. Now, send the data of location 9000H at output port 08H and then add the numbers and store the result at location 9002H and output port 09H. Justify the result and flags by using calculation on your answer sheet.

Q17. (a) Write an assembly language program to store the data 05H and 01H at memory locations 9050H and register E respectively. Now, store these data in a stack of starting address A000H and then copy the stack data in register pair HL. Specify the value of stack pointer at the end of the program on your answer sheet (b) Write an assembly language program to store the data 05 and 02 at memory locations 9000H and 9001H respectively. Now, add the numbers with previous carry and store the result at location 9002H. Justify the result and flags by using calculation on your answer sheet.

Q18. (a) Write an assembly language program to store the data 23H and 02H at memory locations 9000H and 9001H respectively. Now, store the data of location 9000H in register D and data of location 9001H in register E. Now, save the value of register E at memory location 9002H. Now, store the data of register pair DE in a stack of starting address 9050H. Specify the value of stack pointer at the end of the program on your answer sheet. (b) Write an assembly language program to store the data 89H and 88H at memory locations A000H and A001H respectively. Now, add the numbers and store the result at location A002H. Justify the result and flags by using calculation on your answer sheet.

Q19. (a) Write an assembly language program to store the data 15H and 02H at memory locations 9050H and register E respectively. Now, store these data in a stack of starting

address A000H. Specify the value of stack pointer at the end of the program on your answer sheet. (b) Write an assembly language program to store the data 15 and 02 at memory locations 9000H and 9001H respectively. Now, send the data of location 9000H at output port 08H and then add the numbers and store the result at location 9002H and output port 09H. Justify the result and flags by using calculation on your answer sheet.

Q20. (a) Write an assembly language program to store the data 05H and 01H at memory locations 9050H and register E respectively. Now, store these data in a stack of starting address A000H and then copy the stack data in register pair HL. Specify the value of stack pointer at the end of the program on your answer sheet (b) Write an assembly language program to store the data 05 and 02 at memory locations 9000H and 9001H respectively. Now, add the numbers with previous carry and store the result at location 9002H. Justify the result and flags by using calculation on your answer sheet.

Q21. (a) Write an assembly language program to store the data 23H and 02H at memory locations 9000H and 9001H respectively. Now, store the data of location 9000H in register D and data of location 9001H in register E. Now, save the value of register E at memory location 9002H. Now, store the data of register pair DE in a stack of starting address 9050H. Specify the value of stack pointer at the end of the program on your answer sheet. (b) Write an assembly language program to store the data 89H and 88H at memory locations A000H and A001H respectively. Now, add the numbers and store the result at location A002H. Justify the result and flags by using calculation on your answer sheet.

Q22. (a) Write an assembly language program to store the data 15H and 02H at memory locations 9050H and register E respectively. Now, store these data in a stack of starting address A000H. Specify the value of stack pointer at the end of the program on your answer sheet. (b) Write an assembly language program to store the data 15 and 02 at memory locations 9000H and 9001H respectively. Now, send the data of location 9000H at output port 08H and then add the numbers and store the result at location 9002H and output port 09H. Justify the result and flags by using calculation on your answer sheet.

Q23. (a) Write an assembly language program to store the data 05H and 01H at memory locations 9050H and register E respectively. Now, store these data in a stack of starting address A000H and then copy the stack data in register pair HL. Specify the value of stack pointer at the end of the program on your answer sheet (b) Write an assembly language program to store the data 05 and 02 at memory locations 9000H and 9001H respectively. Now, add the numbers with previous carry

and store the result at location 9002H. Justify the result and flags by using calculation on your answer sheet.

Q24. (a) Write an assembly language program to store the data 23H and 02H at memory locations 9000H and 9001H respectively. Now, store the data of location 9000H in register D and data of location 9001H in register E. Now, save the value of register E at memory location 9002H. Now, store the data of register pair DE in a stack of starting address 9050H. Specify the value of stack pointer at the end of the program on your answer sheet. (b) Write an assembly language program to store the data 89H and 88H at memory locations A000H and A001H respectively. Now, add the numbers and store the result at location A002H. Justify the result and flags by using calculation on your answer sheet.

Q25. (a) Write an assembly language program to store the data 15H and 02H at memory locations 9050H and register E respectively. Now, store these data in a stack of starting address A000H. Specify the value of stack pointer at the end of the program on your answer sheet. (b) Write an assembly language program to store the data 15 and 02 at memory locations 9000H and 9001H respectively. Now, send the data of location 9000H at output port 08H and then add the numbers and store the result at location 9002H and output port 09H. Justify the result and flags by using calculation on your answer sheet.

Q26. (a) Write an assembly language program to store the data 05H and 01H at memory locations 9050H and register E respectively. Now, store these data in a stack of starting address A000H and then copy the stack data in register pair HL. Specify the value of stack pointer at the end of the program on your answer sheet (b) Write an assembly language program to store the data 05 and 02 at memory locations 9000H and 9001H respectively. Now, add the numbers with previous carry and store the result at location 9002H. Justify the result and flags by using calculation on your answer sheet.

Q27. (a) Write an assembly language program to store the data 23H and 02H at memory locations 9000H and 9001H respectively. Now, store the data of location 9000H in register D and data of location 9001H in register E. Now, save the value of register E at memory location 9002H. Now, store the data of register pair DE in a stack of starting address 9050H. Specify the value of stack pointer at the end of the program on your answer sheet. (b) Write an assembly language program to store the data 89H and 88H at memory locations A000H and A001H respectively. Now, add the numbers and store the result at location A002H. Justify the result and flags by using calculation on your answer sheet.

Q28. (a) Write an assembly language program to store the data 15H and 02H at memory locations 9050H and register E respectively. Now, store these data in a stack of starting address A000H. Specify the value of stack pointer at the end of the program on your answer sheet. (b) Write an assembly language program to store the data 15 and 02 at memory locations 9000H and 9001H respectively. Now, send the data of location 9000H at output port 08H and then add the numbers and store the result at location 9002H and output port 09H. Justify the result and flags by using calculation on your answer sheet.

Q29. (a) Write an assembly language program to store the data 05H and 01H at memory locations 9050H and register E respectively. Now, store these data in a stack of starting address A000H and then copy the stack data in register pair HL. Specify the value of stack pointer at the end of the program on your answer sheet (b) Write an assembly language program to store the data 05 and 02 at memory locations 9000H and 9001H respectively. Now, add the numbers with previous carry and store the result at location 9002H. Justify the result and flags by using calculation on your answer sheet.

Q30. (a) Write an assembly language program to store the data 23H and 02H at memory locations 9000H and 9001H respectively. Now, store the data of location 9000H in register D and data of location 9001H in register E. Now, save the value of register E at memory location 9002H. Now, store the data of register pair DE in a stack of starting address 9050H. Specify the value of stack pointer at the end of the program on your answer sheet. (b) Write an assembly language program to store the data 89H and 88H at memory locations A000H and A001H respectively. Now, add the numbers and store the result at location A002H. Justify the result and flags by using calculation on your answer sheet.

Q31. (a) Write an assembly language program to store the data 15H and 02H at memory locations 9050H and register E respectively. Now, store these data in a stack of starting address A000H. Specify the value of stack pointer at the end of the program on your answer sheet. (b) Write an assembly language program to store the data 15 and 02 at memory locations 9000H and 9001H respectively. Now, send the data of location 9000H at output port 08H and then add the numbers and store the result at location 9002H and output port 09H. Justify the result and flags by using calculation on your answer sheet.

Q33. (a) Write an assembly language program to store the data 05H and 01H at memory locations 9050H and register E respectively. Now, store these data in a stack of starting address A000H and then copy the stack data in register pair HL. Specify the value of stack pointer at the end of the program on your answer sheet

(b) Write an assembly language program to store the data 05 and 02 at memory locations 9000H and 9001H respectively. Now, add the numbers with previous carry and store the result at location 9002H. Justify the result and flags by using calculation on your answer sheet.

Q35. (a) Write an assembly language program to store the data 23H and 02H at memory locations 9000H and 9001H respectively. Now, store the data of location 9000H in register D and data of location 9001H in register E. Now, save the value of register E at memory location 9002H. Now, store the data of register pair DE in a stack of starting address 9050H. Specify the value of stack pointer at the end of the program on your answer sheet. (b) Write an assembly language program to store the data 88H and 89H at memory locations A000H and A001H respectively. Now, add the numbers and store the result at location A002H. Justify the result and flags by using calculation on your answer sheet.

Q37. (a) Write an assembly language program to store the data 15H and 02H at memory locations 9050H and register E respectively. Now, store these data in a stack of starting address A000H. Specify the value of stack pointer at the end of the program on your answer sheet. (b) Write an assembly language program to store the data 15 and 02 at memory locations 9000H and 9001H respectively. Now, send the data of location 9000H at output port 08H and then add the numbers and store the result at location 9002H and output port 09H. Justify the result and flags by using calculation on your answer sheet.

Q38. (a) Write an assembly language program to store the data 05H and 01H at memory locations 9050H and register E respectively. Now, store these data in a stack of starting address A000H and then copy the stack data in register pair HL. Specify the value of stack pointer at the end of the program on your answer sheet (b) Write an assembly language program to store the data 05 and 02 at memory locations 9000H and 9001H respectively. Now, add the numbers with previous carry and store the result at location 9002H. Justify the result and flags by using calculation on your answer sheet.

Q39. (a) Write an assembly language program to store the data 23H and 02H at memory locations 9000H and 9001H respectively. Now, store the data of location 9000H in register D and data of location 9001H in register E. Now, save the value of register E at memory location 9002H. Now, store the data of register pair DE in a stack of starting address 9050H. Specify the value of stack pointer at the end of the program on your answer sheet. (b) Write an assembly language program to store the data 88H and 89H at memory locations A000H and A001H respectively. Now, add the numbers and store the result

at location A002H. Justify the result and flags by using calculation on your answer sheet.

Q40. (a) Write an assembly language program to store the data 15H and 02H at memory locations 9050H and register E respectively. Now, store these data in a stack of starting address A000H. Specify the value of stack pointer at the end of the program on your answer sheet. (b) Write an assembly language program to store the data 15 and 02 at memory locations 9000H and 9001H respectively. Now, send the data of location 9000H at output port 08H and then add the numbers and store the result at location 9002H and output port 09H. Justify the result and flags by using calculation on your answer sheet.

Q41. (a) Write an assembly language program to store the data 05H and 01H at memory locations 9050H and register E respectively. Now, store these data in a stack of starting address A000H and then copy the stack data in register pair HL. Specify the value of stack pointer at the end of the program on your answer sheet (b) Write an assembly language program to store the data 05 and 02 at memory locations 9000H and 9001H respectively. Now, add the numbers with previous carry and store the result at location 9002H. Justify the result and flags by using calculation on your answer sheet.

Q42. (a) Write an assembly language program to store the data 23H and 02H at memory locations 9000H and 9001H respectively. Now, store the data of location 9000H in register D and data of location 9001H in register E. Now, save the value of register E at memory location 9002H. Now, store the data of register pair DE in a stack of starting address 9050H. Specify the value of stack pointer at the end of the program on your answer sheet. (b) Write an assembly language program to store the data 88H and 89H at memory locations A000H and A001H respectively. Now, add the numbers and store the result at location A002H. Justify the result and flags by using calculation on your answer sheet.

Q43. (a) Write an assembly language program to store the data 15H and 02H at memory locations 9050H and register E respectively. Now, store these data in a stack of starting address A000H. Specify the value of stack pointer at the end of the program on your answer sheet. (b) Write an assembly language program to store the data 15 and 02 at memory locations 9000H and 9001H respectively. Now, send the data of location 9000H at output port 08H and then add the numbers and store the result at location 9002H and output port 09H. Justify the result and flags by using calculation on your answer sheet.

Q44. (a) Write an assembly language program to store the data 05H and 01H at memory locations 9050H and register E respectively. Now, store these data in a stack of starting address A000H and then copy the stack data in register pair HL. Specify the value of stack pointer at the end of the program on your answer sheet (b) Write an assembly language program to store the data 05 and 02 at memory locations 9000H and 9001H respectively. Now, add the numbers with previous carry and store the result at location 9002H. Justify the result and flags by using calculation on your answer sheet.

Q45. (a) Write an assembly language program to store the data 23H and 02H at memory locations 9000H and 9001H respectively. Now, store the data of location 9000H in register D and data of location 9001H in register E. Now, save the value of register E at memory location 9002H. Now, store the data of register pair DE in a stack of starting address 9050H. Specify the value of stack pointer at the end of the program on your answer sheet. (b) Write an assembly language program to store the data 89H and 88H at memory locations A000H and A001H respectively. Now, add the numbers and store the result at location A002H. Justify the result and flags by using calculation on your answer sheet.

Q46. (a) Write an assembly language program to store the data 15H and 02H at memory locations 9050H and register E respectively. Now, store these data in a stack of starting address A000H. Specify the value of stack pointer at the end of the program on your answer sheet. (b) Write an assembly language program to store the data 15 and 02 at memory locations 9000H and 9001H respectively. Now, send the data of location 9000H at output port 08H and then add the numbers and store the result at location 9002H and output port 09H. Justify the result and flags by using calculation on your answer sheet.

Q48. (a) Write an assembly language program to store the data 05H and 01H at memory locations 9050H and register E respectively. Now, store these data in a stack of starting address A000H and then copy the stack data in register pair HL. Specify the value of stack pointer at the end of the program on your answer sheet (b) Write an assembly language program to store the data 05 and 02 at memory locations 9000H and 9001H respectively. Now, add the numbers with previous carry and store the result at location 9002H. Justify the result and flags by using calculation on your answer sheet.

Q49. (a) Write an assembly language program to store the data 23H and 02H at memory locations 9000H and 9001H respectively. Now, store the data of location 9000H in register D and data of location 9001H in register E. Now, save the value of register E at memory location 9002H. Now, store the data of register pair DE in a stack of starting

address 9050H. Specify the value of stack pointer at the end of the program on your answer sheet. (b) Write an assembly language program to store the data 88H and 89H at memory locations A000H and A001H respectively. Now, add the numbers and store the result at location A002H. Justify the result and flags by using calculation on your answer sheet.

Q50. (a) Write an assembly language program to store the data 15H and 02H at memory locations 9050H and register E respectively. Now, store these data in a stack of starting address A000H. Specify the value of stack pointer at the end of the program on your answer sheet. (b) Write an assembly language program to store the data 15 and 02 at memory locations 9000H and 9001H respectively. Now, send the data of location 9000H at output port 08H and then add the numbers and store the result at location 9002H and output port 09H. Justify the result and flags by using calculation on your answer sheet.

Q51. (a) Write an assembly language program to store the data 05H and 01H at memory locations 9050H and register E respectively. Now, store these data in a stack of starting address A000H and then copy the stack data in register pair HL. Specify the value of stack pointer at the end of the program on your answer sheet (b) Write an assembly language program to store the data 05 and 02 at memory locations 9000H and 9001H respectively. Now, add the numbers with previous carry and store the result at location 9002H. Justify the result and flags by using calculation on your answer sheet.

Q52. (a) Write an assembly language program to store the data 23H and 02H at memory locations 9000H and 9001H respectively. Now, store the data of location 9000H in register D and data of location 9001H in register E. Now, save the value of register E at memory location 9002H. Now, store the data of register pair DE in a stack of starting address 9050H. Specify the value of stack pointer at the end of the program on your answer sheet. (b) Write an assembly language program to store the data 89H and 88H at memory locations A000H and A001H respectively. Now, add the numbers and store the result at location A002H. Justify the result and flags by using calculation on your answer sheet.

Q53. (a) Write an assembly language program to store the data 15H and 02H at memory locations 9050H and register E respectively. Now, store these data in a stack of starting address A000H. Specify the value of stack pointer at the end of the program on your answer sheet. (b) Write an assembly language program to store the data 15 and 02 at memory locations 9000H and 9001H respectively. Now, send the data of location 9000H at

output port 08H and then add the numbers and store the result at location 9002H and output port 09H. Justify the result and flags by using calculation on your answer sheet.

Q54. (a) Write an assembly language program to store the data 05H and 01H at memory locations 9050H and register E respectively. Now, store these data in a stack of starting address A000H and then copy the stack data in register pair HL. Specify the value of stack pointer at the end of the program on your answer sheet (b) Write an assembly language program to store the data 05 and 02 at memory locations 9000H and 9001H respectively. Now, add the numbers with previous carry and store the result at location 9002H. Justify the result and flags by using calculation on your answer sheet.

Q55. (a) Write an assembly language program to store the data 23H and 02H at memory locations 9000H and 9001H respectively. Now, store the data of location 9000H in register D and data of location 9001H in register E. Now, save the value of register E at memory location 9002H. Now, store the data of register pair DE in a stack of starting address 9050H. Specify the value of stack pointer at the end of the program on your answer sheet. (b) Write an assembly language program to store the data 89H and 88H at memory locations A000H and A001H respectively. Now, add the numbers and store the result at location A002H. Justify the result and flags by using calculation on your answer sheet.

Q56. (a) Write an assembly language program to store the data 15H and 02H at memory locations 9050H and register E respectively. Now, store these data in a stack of starting address A000H. Specify the value of stack pointer at the end of the program on your answer sheet. (b) Write an assembly language program to store the data 15 and 02 at memory locations 9000H and 9001H respectively. Now, send the data of location 9000H at output port 08H and then add the numbers and store the result at location 9002H and output port 09H. Justify the result and flags by using calculation on your answer sheet.

Q57. (a) Write an assembly language program to store the data 05H and 01H at memory locations 9050H and register E respectively. Now, store these data in a stack of starting address A000H and then copy the stack data in register pair HL. Specify the value of stack pointer at the end of the program on your answer sheet (b) Write an assembly language program to store the data 05 and 02 at memory locations 9000H and 9001H respectively. Now, add the numbers with previous carry and store the result at location 9002H. Justify the result and flags by using calculation on your answer sheet.

Q58. (a) Write an assembly language program to store the data 23H and 02H at memory locations 9000H and 9001H respectively. Now, store the data of location 9000H in

register D and data of location 9001H in register E. Now, save the value of register E at memory location 9002H. Now, store the data of register pair DE in a stack of starting address 9050H. Specify the value of stack pointer at the end of the program on your answer sheet. (b) Write an assembly language program to store the data 89H and 88H at memory locations A000H and A001H respectively. Now, add the numbers and store the result at location A002H. Justify the result and flags by using calculation on your answer sheet.

Q59. (a) Write an assembly language program to store the data 15H and 02H at memory locations 9050H and register E respectively. Now, store these data in a stack of starting address A000H. Specify the value of stack pointer at the end of the program on your answer sheet. (b) Write an assembly language program to store the data 15 and 02 at memory locations 9000H and 9001H respectively. Now, send the data of location 9000H at output port 08H and then add the numbers and store the result at location 9002H and output port 09H. Justify the result and flags by using calculation on your answer sheet.

Q60. (a) Write an assembly language program to store the data 05H and 01H at memory locations 9050H and register E respectively. Now, store these data in a stack of starting address A000H and then copy the stack data in register pair HL. Specify the value of stack pointer at the end of the program on your answer sheet (b) Write an assembly language program to store the data 05 and 02 at memory locations 9000H and 9001H respectively. Now, add the numbers with previous carry and store the result at location 9002H. Justify the result and flags by using calculation on your answer sheet.

Q61. (a) Write an assembly language program to store the data 23H and 02H at memory locations 9000H and 9001H respectively. Now, store the data of location 9000H in register D and data of location 9001H in register E. Now, save the value of register E at memory location 9002H. Now, store the data of register pair DE in a stack of starting address 9050H. Specify the value of stack pointer at the end of the program on your answer sheet. (b) Write an assembly language program to store the data 88H and 89H at memory locations A000H and A001H respectively. Now, add the numbers and store the result at location A002H. Justify the result and flags by using calculation on your answer sheet.

Q62. (a) Write an assembly language program to store the data 15H and 02H at memory locations 9050H and register E respectively. Now, store these data in a stack of starting address A000H. Specify the value of stack pointer at the end of the program on your answer sheet.

(b) Write an assembly language program to store the data 15 and 02 at memory locations 9000H and 9001H respectively. Now, send the data of location 9000H at output port 08H and then add the numbers and store the result at location 9002H and output port 09H. Justify the result and flags by using calculation on your answer sheet.

Q63. (a) Write an assembly language program to store the data 05H and 01H at memory locations 9050H and register E respectively. Now, store these data in a stack of starting address A000H and then copy the stack data in register pair HL. Specify the value of stack pointer at the end of the program on your answer sheet (b) Write an assembly language program to store the data 05 and 02 at memory locations 9000H and 9001H respectively. Now, add the numbers with previous carry and store the result at location 9002H. Justify the result and flags by using calculation on your answer sheet.

Q65. (a) Write an assembly language program to store the data 23H and 02H at memory locations 9000H and 9001H respectively. Now, store the data of location 9000H in register D and data of location 9001H in register E. Now, save the value of register E at memory location 9002H. Now, store the data of register pair DE in a stack of starting address 9050H. Specify the value of stack pointer at the end of the program on your answer sheet. (b) Write an assembly language program to store the data 88H and 89H at memory locations A000H and A001H respectively. Now, add the numbers and store the result at location A002H. Justify the result and flags by using calculation on your answer sheet.

Q79. (a) Write an assembly language program to store the data 05H and 01H at memory locations 9050H and register E respectively. Now, store these data in a stack of starting address A000H and then copy the stack data in register pair HL. Specify the value of stack pointer at the end of the program on your answer sheet (b) Write an assembly language program to store the data 05 and 02 at memory locations 9000H and 9001H respectively. Now, add the numbers with previous carry and store the result at location 9002H. Justify the result and flags by using calculation on your answer sheet.

top related