delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/12/17/14:46:03

Message-ID: <34981B33.1728@ra.msstate.edu>
From: Greg Moorer <gam3 AT ra DOT msstate DOT edu>
Reply-To: gam3 AT ra DOT msstate DOT edu
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: movedata.h problems
Lines: 20
Date: Wed, 17 Dec 1997 18:35:22 GMT
NNTP-Posting-Host: slip129-37-252-73.ms.us.ibm.net
NNTP-Posting-Date: Wed, 17 Dec 1997 13:35:22 EST
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

I'm trying to use the _dosmemputl function to move a double buffer into
video memory... this is the code:

void VidShowBuffer (char* inBuffer)
{
 char* screen;
 __djgpp_nearptr_enable();
 screen = 0xa0000 + __djgpp_conventional_base;
 _dosmemputl(inBuffer, (SCREEN_HEIGHT * SCREEN_WIDTH/4), screen);

 __djgpp_nearptr_disable();
}

however, upon compilation, I run into multiple parse errors "before
size_t" in the movedata.h file.  

Also, in the info file... the function prototype is

_dosmemputl([buffer pointer], [number of xfers], [destination address]);

however the example provided seems to call the function in this order:

_dosmemputl([buffer pointer], [destination address], [number of xfers]);

Anyone know what's going on?

-Greg

- Raw text -


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