HTBasic Help
×
Menu
Index

CONTROL and STATUS Statements

 
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
20  PRINT X0,X1,X2,X3,X4,X5,X6,X67
30  PRINT IVAL$(X0,2),IVAL$(X1,2),IVAL$(X2,2),IVAL$(X3,2)
40  PRINT IVAL$(X4,2),IVAL$(X5,2),IVAL$(X6,2),IVAL(X7,2)
50  END