Mail Archives: djgpp/1996/05/06/22:09:37
In article <4mborc$bq0 AT news DOT mel DOT aone DOT net DOT au>,
Leath Muller <leathm AT gbrmpa DOT gov DOT au> 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
- Raw text -