delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/02/18/21:30:14

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
Lines: 33
X-Admin: news AT aol DOT com
From: captainpita AT aol DOT com (Captainpita)
Newsgroups: comp.os.msdos.djgpp
Date: 19 Feb 2002 02:20:13 GMT
Organization: AOL http://www.aol.com
Subject: Question about movedata
Message-ID: <20020218212013.13574.00003023@mb-mv.aol.com>
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hello,

  I am converting a "C" program written in Microsoft "C" to  DJGPP "C", this
program has been working for years and I am a little rusty on "C" programing. 
I am having a problem getting the movedata function to work correctly with
DJGPP "C".   I have a "C" function called "disp" that builds a character string
with the
data/ attribute pair for the color monitor, which is a unsigned char string.
Once this character string is built I want to use "movedata" to move the data
to the color video buffer. 
   Here is a portion of the code...


source_selector = _my_ds();
movedata(source_selector,tempd,0XB800,x,len);



Here are how the variables passed to movedata are defined

unsigned int source_selector;
unsigned char tempd[170];
int x,y,z,len,attrib,return_code;

 x is the offset into the color video area that starts are 0XB800
 len is how many bytes to move

  What did I hose up?   Any ideas out there?

Confused in Vermont



- Raw text -


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