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>outp() - output a value to a port</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  Name:     outp() - output a value to a port
  Usage:    outp(<port>,<val>)
  Params:   integer <port> - the port to output to. Can also be
            specified as a hexadecimal string
            integer <val> - the value to be output to the specified
            port, in the range 0 - 255

  Returns:  nothing

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

                 outp("03DA",or(inp("03DA"),bin2num("00100000")))
                 * read in the value from port 03DAh and or
                 * it with 00100000 to turn bit 5 on


See Also: inp() peek() poke() bin2num() hex2dec()

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