This is the mail archive of the binutils@sources.redhat.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]
Other format: [Raw text]

Re: Help on GAS


"Arun Vishwanathan" <arun.vishwanathan@nevisnetworks.com> writes:

>    "5" 5 bit unsigned immediate * 0 (MIPS16OP_*_IMM5)
>    "H" 5 bit unsigned immediate * 2 (MIPS16OP_*_IMM5)
>    "W" 5 bit unsigned immediate * 4 (MIPS16OP_*_IMM5)
>    "D" 5 bit unsigned immediate * 8 (MIPS16OP_*_IMM5)
>    "E" 5 bit PC relative address * 4 (MIPS16OP_*_IMM5)

> I am not able to understand the meaning of the numbers after the "*". 
> I want to know the significance of these numbers. For example,
> consider the line 
>    "H" 5 bit unsigned immediate * 2 (MIPS16OP_*_IMM5)
> 
> What does the number "2" in the above line mean ?

I'm not overly familiar with MIPS16, but I assume that it means that
the field holds a value in which the least significant bit is
discarded to save space.  You need to take the value in the field and
multiply it by 2 to get its actual value.

Cheers, Ben


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