delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/08/29/14:04:17

Message-ID: <33FE374E.3936@oregoncoast.com>
Date: Fri, 22 Aug 1997 18:05:18 -0700
From: Rudy Gingles <spy AT oregoncoast DOT com>
Reply-To: spy AT oregoncoast DOT com
Organization: Atek Systems
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Moving data from video memory to main memory?
References: <19970820025301 DOT WAA12569 AT ladder02 DOT news DOT aol DOT com>
NNTP-Posting-Host: rm52.oregoncoast.com
Lines: 20
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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 -


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