This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
as/i386 all versions a bit too permissive with ins/outs/lods/stos
- From: Etienne Lorrain <etienne_lorrain at yahoo dot fr>
- To: binutils at sources dot redhat dot com
- Date: Fri, 17 May 2002 16:40:15 +0200 (CEST)
- Subject: as/i386 all versions a bit too permissive with ins/outs/lods/stos
Just for info, if someone has time:
"ins" only possible with %[e]di
"outs" only possible with %[e]si
I did not find a version of "as" complaining, even if they
analyse this part of the instruction for segment overwrite.
The "89 F6" at end is just a nop.
etienne@Fulbert:~$ cat tmp.s
.text
insw %dx,%es:(%edi)
insw %dx,%es:(%esi)
outsw %es:(%esi),%dx
outsw %es:(%edi),%dx
etienne@Fulbert:~$ as tmp.s -al
GAS LISTING tmp.s page 1
1 .text
2 0000 666D insw %dx,%es:(%edi)
3 0002 666D insw %dx,%es:(%esi)
4
5 0004 66266F outsw %es:(%esi),%dx
6 0007 66266F89 outsw %es:(%edi),%dx
6 F6
etienne@Fulbert:~$ as -v
GNU assembler version 2.12.90.0.1 (i386-linux) using BFD version 2.12.90.0.1
20020307 Debian/GNU Linux
etienne@Fulbert:~$
-- etienne.
___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com