The IN and OUT functions are potentially dangerous. Do not play with these functions! You may damage your hardware.
Note: These functions use a privileged instruction(in) and will fail with an exception under windows NT, 2000 and XP.
INP statement
Purpose: INP is a device I/O function that returns a BYTE read from an I/O port. Port% is integer value between 0 and 65,535.
Syntax: RetVal% = INP(Port%) Parameters:
|
INPW statement
Purpose: INPW is a device I/O function that returns the WORD read from an I/O port. Port% is integer value between 0 and 65,535.
Syntax: RetVal% = INPW(Port%) Parameters:
|
OUTP statement
Purpose: OUTP is a device I/O statement that sends a BYTE to a machine I/O port. Port% is integer value between 0 and 65,535.
Syntax: OUTP(Port%, Byte%) Parameters:
|
OUTPW statement
Purpose: OUTPW is a device I/O statement that sends a WORD to a machine I/O port. Port% is integer value between 0 and 65,535.
Syntax: OUTPW(Port%, Word%) Parameters:
|