The CONTROL and STATUS statements allow you to configure the serial and parallel poll response bytes, change the primary address, set interrupt mask registers, read the status of the data and bus lines, read the interrupt status, and read the controller status and address. The following program reads the STATUS registers and prints the values out in both decimal and binary.
10 STATUS 7;X0,X1,X2,X3,X4,X5,X6,X7 !Read all Status Registers