www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/09/23/07:32:50

Date: Tue, 23 Sep 1997 14:32:25 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: ludvig <ludvig AT club-internet DOT fr>
cc: djgpp AT delorie DOT com
Subject: Re: Need help with movedata
In-Reply-To: <3427254E.2A90@club-internet.fr>
Message-ID: <Pine.SUN.3.91.970923142757.15252D-100000@is>
MIME-Version: 1.0

On Tue, 23 Sep 1997, ludvig wrote:

>  for(n=0;n<ca;n++)  
>   _farpokew(_dos_ds,0xA0000+offset*2+n*2,screen_buffer[ibmp+n]); 

0xA0000 is the address of the graphics screen.  Is that what you are 
trying to do?  If you need the text screen, use 0xB8000 instead.

> How do I do? I have in vaine tried to set _my_ds to screen_buffer[ibmp]
> and I have tried to find info in the faqs, but it just wont work...

The DJGPP FAQ explains all this (and in so many words) in section 18.4.  
If something there is not clear, or doesn't seem to work, please ask 
specific questions about what the FAQ tells.

You can't set `_my_ds' to anything, btw: `_my_ds' is a function, not a 
variable (also explained by the above section of the FAQ).

- Raw text -


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