This is the mail archive of the binutils@sourceware.cygnus.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

.code16gcc and "lea <32bit>(%eax),%edx"


  Hello,

[root@localhost gujin]# as -V
GNU assembler version 2.9.5 (i686-pc-linux-gnu) using BFD version 2.9.5.0.33
>>> (same result with 2.10)
[root@localhost gujin]# cat | as -al -
.code32
        leal 4194428(%eax),%edi
.code16gcc
        leal 4194428(%eax),%edi
>>> gives >>>
GAS LISTING                     page 1


   1                    .code32
   2 0000 8DB87C00      leal 4194428(%eax),%edi
   2      4000
   3                    .code16gcc
   4 0006 67668D78      leal 4194428(%eax),%edi
   4      7C
[root@localhost gujin]#

>>>
  I think the hexadecimal for the .code16gcc is too short,
 I would have waited simply (because of the two prefix):
  67 66 / 8D B8 / 7C 00 40 00
          ^^^^^^^^^^^^^^^^^^^ same as .code32

  Have a nice day,
  Etienne.

___________________________________________________________
Do You Yahoo!?
Achetez, vendez! À votre prix! Sur http://encheres.yahoo.fr

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]