OUT
Format: OUT (X, Y)
Supported by: Quest Super BASIC 3.0, 5.0 and 6.0, Telmac SBASIC v 24.3
Similar commands:
Pecom 32 BASIC, RCA BASIC3 V1.1: OUT (Z, X, Y)
This function outputs 8 bit value Y to output port X.
| X | 1802 Instruction | Mnemonic code |
|---|---|---|
| 1 | OUT1 | 61 |
| 2 | OUT2 | 62 |
| 3 | OUT3 | 63 |
| 4 | OUT4 | 64 |
| 5 | OUT5 | 65 |
| 6 | OUT6 | 66 |
| 7 | OUT7 | 67 |
Table 1: Definition of OUT instruction per X value
Example:
OUT (5, 255)
will output the value 255 to output port 5