This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: PATCH: Fix i8086 disassembler for 16bit displacements
- From: "Jan Beulich" <jbeulich at novell dot com>
- To: "H. J. Lu" <hjl at lucon dot org>
- Cc: <binutils at sourceware dot org>
- Date: Mon, 05 Feb 2007 09:21:52 +0000
- Subject: Re: PATCH: Fix i8086 disassembler for 16bit displacements
- References: <20070203003737.GA6527@lucon.org>
>>> "H. J. Lu" <hjl@lucon.org> 03.02.07 01:37 >>>
>OP_J masked displacement to 16bit for all 16bit displacements. It
>should do it only when there is a data16 prefix. I am checking in this
>patch to fix it.
The other way around - a data size prefix in 16-bit mode makes it a
32-bit jump (and the jump remains confined to a 16-bit target without
a prefix), so I think the changes, clearly the test case adjustments,
are wrong.
Jan