Xref: news2.mv.net comp.os.msdos.djgpp:3520 From: brennan AT mack DOT rt66 DOT com (Brennan "Mr. Wacko" Underwood) Newsgroups: comp.os.msdos.djgpp Subject: Re: Copying normal mem to graphics mem (VBE 2.0 & linear) Date: 6 May 1996 17:28:42 -0600 Organization: None, eh? Lines: 26 Message-ID: <4mm1va$cq7@mack.rt66.com> References: <4mborc$bq0 AT news DOT mel DOT aone DOT net DOT au> NNTP-Posting-Host: mack.rt66.com To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp In article <4mborc$bq0 AT news DOT mel DOT aone DOT net DOT au>, Leath Muller wrote: >I have setup a area of graphics memory using UniVBE and the VBE 2.0 calls >which I have mapped to a segment using __djgpp_allocate_LDT_descriptors. >The problem is, whenever I try to copy memory to this new selector using >the segment returned from the call, I get either a protection fault (if it >compiles), or an error at compile time in my code. The error at compile >time has something like > unexpected letter after %-... > >Can anybody help me with this??? > >All I need (even code!!! :) is to know how to do, say a rep movsl, from >my malloc'd memory, to the graphics memory. DJGPP will automagically turn a memcpy with constant-length into an inline rep movsl. If you will have variable numbers of words to blit go check out http://www.rt66.com/~brennan/djgpp/bgtia.html towards the end. Also, get vbe.zip to make sure you're mapping the memory region in right. I use the nearptr method. --brennan -- brennan AT rt66 DOT com | fsck /u