www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/09/23/06:16:27

From: ludvig <ludvig AT club-internet DOT fr>
Newsgroups: comp.os.msdos.djgpp
Subject: Need help with movedata
Date: Tue, 23 Sep 1997 04:11:26 +0200
Organization: Grolier Interactive Europe
Lines: 33
Message-ID: <3427254E.2A90@club-internet.fr>
Reply-To: ludvig AT club-internet DOT fr
NNTP-Posting-Host: ppp-104-221.villette.club-internet.fr
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Hi!

Already written one article, but I can't see it anywhere so here I go
again:

I'm trying to speed up my code a bit to show a friend(he:486DX66
me:P133)how good DJGPP is and offcourse how good my program is:). So
what I want to do is to use the movedata(or movedatal) function to take
information from a certan memspace and put it on screen instead of the
example below.

Old code snippet:

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

where offset and ibmp is *eh* offsets and ca is the nr of words to
transfer.

I have got a 

unsigned short *screen_buffer;

and I want to transfer a certan part of it to A0000+offset and on.

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...

If anyone could help me I would be really grateful.

Ludvig

ps. please send a copy to <ludvig AT club-internet DOT fr>

- Raw text -


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