www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/07/05/07:00:23

Xref: news2.mv.net comp.os.msdos.djgpp:5684
From: dmcneill AT pne DOT co DOT uk (Dave McNeill)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: What is the quickiest way to clear memory?
Date: Fri, 05 Jul 1996 09:27:17 GMT
Organization: Europe Online
Lines: 9
Message-ID: <4rinnt$gqt@nemesis.eo.lu>
References: <4rgv14$7ae AT clark DOT zippo DOT com>
Reply-To: dmcneill AT pne DOT co DOT uk
NNTP-Posting-Host: 206.73.222.8
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Pin F. Sun wrote:

>I am trying to find out a quick way to clear memory.  I used memset or 
>bzero function, but they are way too slow.  I am trying to use assembly
>language, but Gas doesn't recognize 'les' and 'reps ', can anybody help
>me?

memset() uses rep stosd.  you don't get much quickier than that!

- Raw text -


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