Retro Rocket OS
BASIC-Powered Operating System
Loading...
Searching...
No Matches
INPORTW Function
X = INPORTW(port)

Reads a 16-bit word from port and returns it (0–65535).

Note
Only use when the device expects word access.

How to read it

  • Reads two consecutive bytes from the port as a word.
  • Common for storage controllers such as ATA.

Examples

REM Read a word from ATA data port
W = INPORTW(&1F0)
PRINT W

Notes

  • Do not use unless the port is documented as word-accessible.

See also:
INPORT · INPORTD · INPORTQ · OUTPORTW