www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/11/19/12:06:51

Date: Sun, 19 Nov 1995 17:44:57 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Andrew McCaffrey <fenric AT clark DOT net>
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: Sending a byte to videomem

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019