2) The following questions are set up in view of the figures (a,b). a) Describe what type of 10 operation is carried out in Figure (a). Write an instruction sequence that will input the byte contents of input port 6 to memory location MEMI. b) What is the polling operation? Write a sequence of instructions to poll the input 17 at input port 5 to check whether it is switched to zero or not. Figure (a). c) Write a sequence of instructions that will read the contents of input port 7. Mask off all the bits except LSB. The content of LSB will be shifted to CF. If CF =1, then the program will go to start of service routine XXX. Figure (a). d) Describe what type of 10 operation is carried out in Figure (b). Write a sequence of instructions to initialize the control register in PPI O in Figure (b) so that PA is an output port, Ps and Pc are input ports. Initialize all the necessary registers, Ports are configured for mode 0 operation. e) Write a program to input the contents of Pg and Pc then OR them together and send the resultant to PA. These ports are the PPI 0 ports in Figure (b). Ports are configured for mode 0 operation. Initialize all the necessary registers, Write comments and Use minimum number of instructions in your programs. 2) The following questions are set up in view of the figures (a,b). a) Describe what type of 10 operation is carried out in Figure (a). Write an instruction sequence that will input the byte contents of input port 6 to memory location MEMI. b) What is the polling operation? Write a sequence of instructions to poll the input 17 at input port 5 to check whether it is switched to zero or not. Figure (a). c) Write a sequence of instructions that will read the contents of input port 7. Mask off all the bits except LSB. The content of LSB will be shifted to CF. If CF =1, then the program will go to start of service routine XXX. Figure (a). d) Describe what type of 10 operation is carried out in Figure (b). Write a sequence of instructions to initialize the control register in PPI O in Figure (b) so that PA is an output port, Ps and Pc are input ports. Initialize all the necessary registers, Ports are configured for mode 0 operation. e) Write a program to input the contents of Pg and Pc then OR them together and send the resultant to PA. These ports are the PPI 0 ports in Figure (b). Ports are configured for mode 0 operation. Initialize all the necessary registers, Write comments and Use minimum number of instructions in your programs