OUT
Syntax
Section titled “Syntax”OUT <port number>, <value>
Description
Section titled “Description”Sends the byte value to the given port.
Arguments must be a numeric expressions. Port will be converted to UInteger
and value will be truncated to UByte
.
Examples
Section titled “Examples”REM Port 254DIM i AS UIntegerCLS
FOR i = 1 to 10000 OUT 254, iNEXT
Remarks
Section titled “Remarks”- This function is 100% Sinclair BASIC Compatible
- If the given port is not of type
UInteger
, it will be converted toUInteger
before operating with it. - If the given value is not of type
Ubyte
, it will be converted toUByte
before operating with it.