Mail Archives: djgpp/2002/02/18/21:30:14
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 -