Mail Archives: djgpp/1997/07/15/14:32:45
Gordon Brown wrote:
>
> If I have a PCI board located in the PC memory space at 0x3d000000 how
> do I access this memory using DJGPP.
Maybe this way (it works for my PCI graphics card,
don't know if it is ok though):
#include <dpmi.h>
main()
{
char *virtualscreen = malloc(1024*1024); // 1mb
__djgpp_map_physical_memory(virtualscreen, 1024*1024, 0x3d000000);
SetMode(0x13);
memset(virtualscreen, 1, 320*200); // clear screen blue
getch();
SetMode(3);
}
'hope that helps...
-- Benny.
- Raw text -