OUT

Syntax

OUT <port number>, <value>

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

REM Port 254
DIM i AS UInteger
CLS

FOR i = 1 to 10000
  OUT 254, i
NEXT

Remarks

  • This function is 100% Sinclair BASIC Compatible
  • If the given port is not of typeUInteger, it will be converted to UInteger before operating with it.
  • If the given value is not of typeUbyte, it will be converted to UByte before operating with it.

See also