screen
Posted: Fri Feb 01, 2002 8:48 am
hello,
i have a program loaded to 080000h in realmode
it switches then to pmode. That works fine.
at least i call the _main function, which is written in c (djgpp)
it looks like this:
char * message = "H A L L O ";
int main()
{
....
movedata(datasel, message, screensel, 0, 10);
}
THE PROBLEM is: movedata works. But the pointer may hold the wrong adress. Cause 5 stupid signs are written to the screen.
When i take
char * message = "H A L L O ";
into the main() function it works!!!!
I know that local variables are on the stack. BUT:
a for(i=0....
causes the pc to hang! (i is declared local!!)
where can the problem be?
i have a program loaded to 080000h in realmode
it switches then to pmode. That works fine.
at least i call the _main function, which is written in c (djgpp)
it looks like this:
char * message = "H A L L O ";
int main()
{
....
movedata(datasel, message, screensel, 0, 10);
}
THE PROBLEM is: movedata works. But the pointer may hold the wrong adress. Cause 5 stupid signs are written to the screen.
When i take
char * message = "H A L L O ";
into the main() function it works!!!!
I know that local variables are on the stack. BUT:
a for(i=0....
causes the pc to hang! (i is declared local!!)
where can the problem be?