Write an assembly language program that initialize data X to 0, and then when input device inputs data it is added to X and when output device asks for data the value of X is output.
a) Use Programmed I/O Mode of data transfer for inputting and outputting data.
b) Use Interrupt I/O Mode of data transfer for inputting and outputting data.