OUT
Format: OUT (Z, X, Y)
Supported by: Pecom 32 BASIC, RCA BASIC3 V1.1
Similar commands:
Quest Super BASIC 3.0, 5.0 and 6.0, Telmac SBASIC v 24.3: OUT
If Z is not equal to 0 this function first outputs (8 bit) value Z to output port 1. After this the 8 bit value Y is output to output port X. If Z = 0 is used only the value Y is output to output port X without performing the initial output to port 1.
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
Examples:
OUT (0, 5, 255)
will output the value 255 to output port 5
OUT (10, 5, 255)
will output value 10 to output port 1 and then output the value 128 to output port 5