i386-dis.c OP_OFF patch

Doug Evans dje@canuck.cygnus.com
Mon Jun 3 16:27:00 GMT 1996


Objdump is incorrectly disassembling this insn:

	mov %fs:0,%eax

`%fs:' is not printed.

I don't know the 386 well enough, but does this look right?

Mon Jun  3 16:17:25 1996  Doug Evans  <dje@canuck.cygnus.com>

	* i386-dis.c (OP_OFF): Call append_prefix.

Index: i386-dis.c
===================================================================
RCS file: /cvs/cvsfiles/devo/opcodes/i386-dis.c,v
retrieving revision 1.19
diff -c -p -r1.19 i386-dis.c
*** i386-dis.c	1996/02/20 16:08:02	1.19
--- i386-dis.c	1996/06/03 23:14:13
*************** OP_OFF (bytemode)
*** 1939,1945 ****
       int bytemode;
  {
    int off;
!   
    if (aflag)
      off = get32 ();
    else
--- 1939,1947 ----
       int bytemode;
  {
    int off;
! 
!   append_prefix ();
! 
    if (aflag)
      off = get32 ();
    else




More information about the Gas2 mailing list