www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/07/02/04:07:29

Date: Wed, 2 Jul 1997 11:06:41 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Willy Gardiol <gardiol AT iol DOT it>
cc: djgpp AT delorie DOT com
Subject: Re: help! asm and djgpp
In-Reply-To: <01bc863f$7681a200$LocalHost@default>
Message-ID: <Pine.SUN.3.91.970702110431.27453G-100000@is>
MIME-Version: 1.0

On 1 Jul 1997, Willy Gardiol wrote:

> This is my way:
> for ( x = a; x < b; x++)
> 	for (y = c ; y < d; y++)
> 		_farnspokeb( SVGA_ADDR + y*640 + x , virtual_screen[x][y] );
> 
> How can i copy in a QUICK way a block of bytes from a memory addres to the
> addres of the svga's frame buffer?

Why not look in the FAQ?  The DJGPP FAQ list (v2/faq210b.zip from the 
same place you get DJGPP) explains how to do this in section 18.4.  The 
`farptr' functions are only good for moving a few bytes.

- Raw text -


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