*BSD News Article 12459


Return to BSD News archive

Xref: sserve comp.os.386bsd.questions:640 comp.os.386bsd.development:126
Path: sserve!manuel.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!olivea!mintaka.lcs.mit.edu!ai-lab!hal.gnu.ai.mit.edu!mycroft
From: mycroft@hal.gnu.ai.mit.edu (Charles Hannum)
Newsgroups: comp.os.386bsd.questions,comp.os.386bsd.development
Subject: Re: Intel Bug on movsb
Message-ID: <1nhb8fINN2kc@life.ai.mit.edu>
Date: 9 Mar 93 05:51:11 GMT
References: <1993Mar5.112138.2011@netcom.com>
Organization: /etc/organization
Lines: 22
NNTP-Posting-Host: hal.ai.mit.edu


]>> I took the following code:
]>>
]>>         cld
]>>         movb (%esi), %al
]>>         movb %al, (%edi)
]>>         incl %edi
]>>
]>> and replaced it with the following:
]>>
]>>         movb (%esi), %al
]>>         stosb
]>>
]>> The resulting code when compiled does not work.  This paricular code
]>> is repeated n times when data is read from an i/o port.

Of course not.  You need the `cld' in the latter case, not the former.

-- 
 \  /   Charles Hannum, mycroft@ai.mit.edu
 /\ \   PGP public key available on request.  MIME, AMS, NextMail accepted.
Scheme  White heterosexual atheist male (WHAM) pride!