Mail Archives: djgpp/1997/08/29/14:04:17
DrumC96 wrote:
>
> Hey everybody,
> I'm trying to figure this out. I wrote a blit function for svga that
> is pretty fast moving dwords at a time when possible. I made a copy
> routine that is pretty much exactly the same except the bitmap destination
> is edi and the source in video memory is esi (which is opposite for the
> blit). I have a selector for video memory. The problem is, I can change es
> in a function and have no problems, such as call movsd and having data
> moved to video ram. When I change ds to my video memory selector, I can't
> use movsd to copy data to main memory from video memory without a gpf.
> Please explain why and how I can get around that. If you can understand
> what I just tried to explain, then you probably have an answer. Im using
> nasm so please if at all possible us intel syntax.
> Sincerely,
> DrumC96 AT aol DOT com
Perhaps GCC is using DS to access your main memory?
Rudy
- Raw text -