Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Tom Rettigs Library - poke...(<c segment>, <c|n offset>, <data>) http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 POKE...(<C segment>, <C|N offset>, <data>)
 Stores data of specified type at memory location.
 Returns <expL> false if less than 3 parameters passed, otherwise true.

 <segment> is the segment address of a memory location
    expressed as a 4-byte hexadecimal string.
 <offset> is the offset address of a memory location
    expressed as either 4-byte hexadecimal string or integer.
 <data> to POKE at the specified location.

 Useful for simulating data types and structures not supported by Clipper.

 The following POKE...() functions are available:

 Function     Returns
 ----------   --------------------------------
 POKEBYTE()   1-byte hex string
 POKECHAR()   1-byte ASCII character
 POKEINT()    2-byte integer
 POKELONG()   4-byte integer
 POKEDBL()    8-byte floating-point number
 POKESTR()    null-terminated character string

 See the example under ALLOCATE().

 Hazard
    There are no protected areas in memory on a PC.  These
    functions assume that the address you pass them is valid.  If
    it is not, you could overwrite essential areas in memory,
    possibly causing computer lock-up and data destruction.

 The functions ALLOCATE() and DEALLOC() have been provided
 specifically to give you a protected area in memory into which
 to POKE.  You get the most power and safety out of the POKE()
 functions if you use them in combination with ALLOCATE() and DEALLOC().


             Placed in the Public Domain by Tom Rettig Assoc.

See Also: ALLOCATE() DEALLOC() DOSFUNC PEEK...() ROMBIOS

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