Mail Archives: djgpp/1997/08/05/23:04:21
Egg brains wrote:
> 
> how would i use
> UCHAR *vga = MK_FP(0xA000, 0);
> in djgpp WITHOUT simulating MK_FP in other words i want to know how to use
> 
> memset(vga, 0, 0xffff);
> without having to use MK_FP (or a simulation)... i tried
> memset(__tb & 0xA000, 0, 0xffff);
> this just made a nasty error...
> 
> any and all help would be appreciated... thanx --- Paul
it is not clear to me what you mean by "simulating MK_FP". in any case,
refer to chapter 17 in the FAQ.
for functions to move data between virtual memory and commercial memory,
see the farpoke/farpeek, movedata and dosmemput/dosmemget functions.
-- 
   Sinan
 
*******************************************************************
 A. Sinan Unur                                WWWWWW
                                              |--O+O
 mailto:sinan DOT unur AT cornell DOT edu                C   ^ 
 http://www.people.cornell.edu/pages/asu1/     \  ~/ 
Unsolicited e-mail is _not_ welcome, and will be billed for.
*******************************************************************
- Raw text -