IN
Syntax
Section titled “Syntax”IN <port number>
Description
Section titled “Description”Returns the byte value read in the given port. Argument must be a numeric expression. Returned value type is Ubyte.
Examples
Section titled “Examples”REM Port 254DIM i AS UIntegerCLSPRINT "PRESS ANY KEY TO CHANGE THE READ VALUE"
FOR i = 1 to 10000 PRINT AT 10, 0; IN 254;NEXT
Remarks
Section titled “Remarks”- This function is 100% Sinclair BASIC Compatible
- If the given argument type is not
UInteger
, it will be converted toUInteger
before operating with it.