Introduction - If you have any usage issues, please Google them yourself
Write a program to work in 8255 mode 0, port A as output port, the port operating in mode 1 and B as input port, the port C of PC2 as strobe input STBB, PC2 as an interrupt request signal output INTRB. When the B port data ready, the request by sending signals to CPU STBB read port B data, and sent A port output.