Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Borland C++ 2.x ( with Turbo C ) - <b>poke() store word value at a memory location (macro)</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 poke()                  Store Word Value at a Memory Location (Macro)

 #include   <dos.h>

 void       poke(segment,offset,value);
 unsigned   segment;                     Segment
 unsigned   offset;                      Offset
 int        value;                       Value to be stored

    poke() stores an integer specified by 'value' at the memory address
    specified by 'segment:offset'.  poke() is treated as a macro if the
    header file <dos.h> is included. If the file is not included, or if
    #undef is used on it, poke() is a function.

       Returns:     Nothing

   Portability:     Unique to 8086 family of processors.


See Also: peek() peekb() pokeb()

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