Question: what is fgi and fgo?
Answer: External devices (input or output in this instance) requesting an interrupt asynchronously set the two flags FGI and FGO. The FGI and FGO flags are cleared to zero when the respective input, INP, output, OUT, instruction is executed. ... While the computer is running a program, it does not check the interrupt flags.