We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/nataliapc/mcp-openmsx'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
INP().md•423 B
# INP()
## Effect
Returns the value of an input port.
## Syntax
`INP(<PortNumber>)`
## Parameter
`<PortNumber>` is the I/O port number to read. It needs to be between 0 and 255.
## Example
```basic
10 A=INP(&HA8)
20 A$="00000000"+BIN$(A)
30 PRINT RIGHT$(A$,8)
```
## Related to
`OUT`, `SOUND`, `VDP()`, `WAIT`
## Compatibility
MSX-BASIC 1.0 or higher
## Source
Retrieved from "https://www.msx.org/wiki/INP()"