Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FUNCky - <b>name:</b> <b>inp() - input from a port</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  Name:     inp() - input from a port
  Usage:    <integer> = inp(<port>)
  Params:   integer <port> - the port number to read from. You can
            also specify the port value as a hexadecimal string

  Returns:  an integer equal to the value read in from the port

 ---------------------------------- Example ---------------------------------

                 * passing the port as an integer:
                 mportval = inp(2)
                 * inputs data from port #2

                 *passing the port as a hex string:
                 mportval = inp("03dA")
                 * inputs data from port 03DAh


See Also: outp() peek() poke() peekstr()

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