RTEMS on MCP750 and MTX-60x, for Eric Valette

Till Straumann strauman at slac.stanford.edu
Thu Nov 7 18:14:46 UTC 2002


Chris Caudle wrote:

>On Thursday 07 November 2002 12:52 pm, gregory.menke at gsfc.nasa.gov wrote:
>
>>- In registers.h, you lay out the HID0 bits as leftwards bit shifts,
>>  but the Motorola docs lay out the bits with LSB leftmost,
>>
>
>If the Motorola docs are like the IBM docs, the leftmost is actually MSB, 
>but it it called bit 0.  LSB is then bit 31 (e.g. in a 32 bit register).
>
That applies for motorola as well. MSB is called bit 0, hence (1<<31) is 
actually MSB / bit 0.
I sometimes write ( 1 << (31 - x)) just to avoid sloppy subtraction 
errors ;-)





More information about the users mailing list