:[diStorm}: problem decoding fnstsw
Sanjay Patel
sanjay3000 at yahoo.com
Tue Feb 13 12:56:59 EST 2007
Ah, I see - I was looking at the wrong encoding. You're correct - this should
be 'FNSTSW AX'.
Putting the operand to be in the operand string rather than the mnemonic
would be nice, but it's not a high priority request. If I separate the
mnemonic/operands with a tab or separate columns in a table, it makes the
formatting nicer.
Thanks,
Sanjay
--- Gil Dabah <arkon at ragestorm.net> wrote:
> There are a few decoding for this instruction.
> The constant 0xdf, 0xe0 which results in fnstsw ax (according to the AMD
> specs it's AX, 16 bits operation).
> And 0xdd, <modrm byte /7> which results in FNSTSW rm16.
> But the modrm byte value must be lower than 0xC0, because that instruction
> supports only memory indirection operand.
>
> Maybe I should indeed put the AX in the operands string rather than the
> mnemonic string itself.
> I have never considered this before. If that might help you, I am willing
> to
> do so.
>
> On 2/13/07, Sanjay Patel <sanjay3000 at yahoo.com> wrote:
> >
> > I think this 2 byte sequence should be "fnstsw eax":
> >
> > 0xdf, 0xe0
> >
> > But diStorm seems to be returning "fnstsw ax" all in the mnemonic string
> > rather than putting 'ax' into the operand string. My reading of the
> > manuals
> > is not very good - the modrm byte is specified as /7 - so does that mean
> > that
> > 0xe0 is invalid in this case?
> >
> > --Sanjay
> >
> >
> >
> >
> >
> >
> >
> >
> >
>
____________________________________________________________________________________
> > Now that's room service! Choose from over 150,000 hotels
> > in 45,000 destinations on Yahoo! Travel to find your fit.
> > http://farechase.yahoo.com/promo-generic-14795097
> >
> > _______________________________________________
> > diStorm mailing list
> > diStorm at ragestorm.net
> > http://ragestorm.net/mailman/listinfo/distorm_ragestorm.net
> >
>
____________________________________________________________________________________
The fish are biting.
Get more visitors on your site using Yahoo! Search Marketing.
http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php
More information about the diStorm
mailing list