delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/09/26/03:00:46

From: Niklas_Pson AT nosmam DOT hotmail DOT com (Niklas Pettersson)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: What is faster as memcpy???
Date: 26 Sep 2000 06:55:03 GMT
Organization: Lund Institute of Technology, Sweden
Lines: 19
Message-ID: <8FBB57052NiklasPsonnospamhotm@130.235.20.4>
References: <CCPv5.8958$l6 DOT 494172 AT zwoll1 DOT home DOT nl> <8pqfb2$hmk$1 AT nets3 DOT rz DOT RWTH-Aachen DOT DE> <C0qw5.499$Sp1 DOT 2298 AT zwoll1 DOT home DOT nl> <8q53ue$l8g$1 AT nets3 DOT rz DOT RWTH-Aachen DOT DE> <E3qx5.6196$Sp1 DOT 152048 AT zwoll1 DOT home DOT nl> <m7icsskadue7oeg2908c3j9h0jr0s5hd6e AT 4ax DOT com> <0gTx5.9784$Sp1 DOT 251339 AT zwoll1 DOT home DOT nl>
NNTP-Posting-Host: npedt97.univ.vxu.se
User-Agent: Xnews/03.04.11
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hello!

Here is some code you can try.

_wait_vr:
                pushw   %dx
                pushw   %ax

                movw    $0x03da, %dx
L3:             inb     %dx, %al
                testb   $8, %al
                jne     L3
L4:             inb     %dx, %al
                testb   $8, %al
                je      L4

                popw    %ax
                popw    %dx
                ret

- Raw text -


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