Mail Archives: djgpp/1996/05/16/00:51:36
Armin Herzer <herzer AT fbp DOT fh-weingarten DOT de> wrote:
> Hello all,
> I have the following question concerning DJGPP (v1.12mt5 and v2): What
> must I do to copy a 64k segment (starting at DC000) into an array with the
> size of [256][256]. Can someone please post me an example?
C:\> info libc.a a dosmemget
C:\> info libc.a a movedata
#include <sys/movedata.h>
void get1(void)
{
unsigned char array[256][256];
dosmemget(0xDC000, 65536, array);
}
void get2(void)
{
unsigned char array[256][256];
movedata(_dos_ds, 0xDC000, _my_ds, array, 65536);
}
-Dan Nelson
dan AT dan DOT emsphone DOT com
- Raw text -