OUT¶
Implementation Note¶
⚠️ Emulated as No-Op: This feature requires direct hardware I/O port access and is not implemented in this Python-based interpreter.
Behavior: Statement is parsed and executes successfully, but performs no operation
Why: Cannot access hardware I/O ports from a Python interpreter. OUT was used to control hardware devices through port-based I/O.
Alternative: There is no modern equivalent for hardware port I/O. For memory writes, use POKE, though note it also performs no actual operation.
Historical Reference: The documentation below is preserved from the original MBASIC 5.21 manual for historical reference.
Syntax¶
Purpose¶
To send a byte to a machine output port.
Remarks¶
I and J are integer expressions in the range 0 to 255. The integer expression I is the port number, and the integer expression J is the data to be transmitted.