Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper Tools . Books 1-3 - <b>com_getio()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 COM_GETIO()
 Determines the base address of a port
------------------------------------------------------------------------------
 Syntax

     COM_GETIO(<nComPort>) --> nIOPort

 Argument

     <nComPort>  Designates the port (1 to 4) to which the current I/O
     address is delivered.

 Returns

     COM_GETIO() returns the I/O address of the designated port.  With an
     invalid parameter or an unavailable port, the function returns a value
     of -1.

 Description

     COM_GETIO() determines with which port I/O address CA-Clipper Tools
     functions communicate.  This function only returns a value known to
     CA-Clipper Tools software.  It cannot determine the I/O address of an
     interface card!

 Examples

     .  Determine the COM1 I/O address:

        ? COM_GETIO(1)               // 1016

     .  Specify that you need the address in hexadecimal form:

        ? NTOC(COM_GETIO(1), 16)     // "3F8"

     .  Specify an invalid port number:

        ? COM_GETIO(5)               // -1


See Also: COM_SETIO() COM_SETIRQ() COM_GETIRQ()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson