Skip to content

IN

IN <port number>

Returns the byte value read in the given port. Argument must be a numeric expression. Returned value type is Ubyte.

REM Port 254
DIM i AS UInteger
CLS
PRINT "PRESS ANY KEY TO CHANGE THE READ VALUE"
FOR i = 1 to 10000
PRINT AT 10, 0; IN 254;
NEXT
  • This function is 100% Sinclair BASIC Compatible
  • If the given argument type is not UInteger, it will be converted to UInteger before operating with it.