Mail Archives: djgpp/1999/09/26/23:25:14
--- Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> wrote:
>
> On Fri, 24 Sep 1999, Prashant TR wrote:
>
> > And does DJGPP allow me to make reference to any
> > portion of the extended memory ?
>
> You can access the parts of extended memory that are
> not in use by the
> DJGPP program and the DPMI host.
>
Here's the portion of the code that I'm using. I don't
know if this is right. Please help.
*****************************************************
int _ctr0_startup_flags = _CRT0_FLAG_NEARPTR;
int main()
{
unsigned long maxmem, f;
char *x;
printf("%s\n", (__djgpp_nearptr_enable()) ? "Enabled"
: "Disabled");
x = (char *)(__djgpp_conventional_base);
f = x[0x1000000]; // Both these don't
seem to work.
_farpeekl(_dos_ds, 0x1000000); // Accessing 16MB
return 0;
}
******************************************************
Thanks,
Prashant TR
__________________________________________________
Do You Yahoo!?
Bid and sell for free at http://auctions.yahoo.com
- Raw text -