Mail Archives: djgpp/1997/12/10/16:46:37
It seems that after I installed windows 95, the problem dissapeared.
Strange uh?
he exact error. The fragment you provided might be
>part of the warning given when the programmer tries to assign a pointer
>to an integer.
Okay, here it is:
warning: assignment makes pointer from integer without a cast
and here is the code:
---
#include <sys/nearptr.h>
char *screen;
main() {
asm ("movw $0x0013,%ax");
asm ("int $0x10");
if (__djgpp_nearptr_enable() == 0) return 1;
screen = 0xa0000 + __djgpp_conventional_base;
screen[0]=1;
screen[1]=2;
screen[2]=3;
asm ("movw $0,%ax");
asm ("int $0x16");
asm ("movw $0x0003h,%ax");
asm ("int $0x10");
}
---
maybe the problem is my bad english, I don't know, but if someone
would like to help me I'd be happy. =)
- Raw text -