Exercise 9.1.4: Programmed I/O with polling. To input a sequence of data items, the driver executes the loop: repeat write parameters for input operation write opcode repeat read busy until FALSE read status if status OK = copy data item from input buffer else exit (a) Write the analogous loop for output.