Mail Archives: djgpp/1995/11/19/12:06:51
On 14 Nov 1995, Andrew McCaffrey wrote:
> Okay, here's is what I want to do. I have an unsigned char global
> variable and want to store it the *entire* vga memory. I'm using mode
> 13h, so it's a 64000 byte memory buffer. I've looked at movedata and
> memset and both have segfaulted on me. I want to call one function that
> takes care of this instead of looping 64000 times farpoking the
> variable. Thanks for any info - this might even be a question for the
> faq, I'm not sure, I checked it but did not find anything enlightening.
You are probably calling movedata() with incorrect parameters. The
latest version of the FAQ (faq102.zip from the same place you get DJGPP)
explains how to call it correctly; if you have already read that and
still have no clue, post the fragment from your program where you call
it.
- Raw text -