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>poke() - poke a value into a memory location</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  Name:     poke() - poke a value into a memory location
  Usage:    <integer> = poke(<seg>,<off>,<value>)
  Params:   integer <seg> - the segment address to poke
            integer <off> - the offset address to poke
            The segment and offset address can also be specified
            as a hexadecimal string, ie: poke("0040","0017",16).
            This is convenient since many times memory address
            locations are specified in hexadecimal format. If you
            specify addresses as hexadecimal strings, you must
            pass both address parameters as hex strings.

            integer <value> - the byte value to poke into the
            memory location defined by <seg>:<off>

  Returns:  nothing

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

            * This example reads the keyboard status byte at location
            * 0040:0017, and then turns the numlock key on by using
            * the or() function to set bit 5 on

                 temp = peek("0040","0017")
                 poke("0040","0017",or(temp,32))


See Also: peek() peekstr()

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