INP
Format: var = INP (X)
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: INP
This function returns the (8 bit) value of input port X.
| X | 1802 Instruction | Mnemonic code |
|---|---|---|
| 1 | INP1 | 69 |
| 2 | INP2 | 6A |
| 3 | INP3 | 6B |
| 4 | INP4 | 6C |
| 5 | INP5 | 6D |
| 6 | INP6 | 6E |
| 7 | INP7 | 6F |
Table 1: Definition of INP instruction per X value
Example:
PR INP (3)
will print the value of input port 3