as/i386 all versions a bit too permissive with ins/outs/lods/stos
Etienne Lorrain
etienne_lorrain@yahoo.fr
Fri May 17 07:40:00 GMT 2002
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
More information about the Binutils
mailing list