basically, this comes from TI includes.

sfrb means thet this defenition of SpecialFunctionRegisterByte.

the sfrb is a magic macro, which should translate, for example ME1_ to ME1 
defenition like

volatile unsigned char ME1 asm("0x0004");

Obviously, thai can be done as:

#define ME1     (*(insigned char *)0x0004))

But then gcc issues some stupid code for read-modify-write instructions 
(sometimes)

~d


On Saturday 07 September 2002 01:35, Garst R. Reese wrote:
> Can someone enlighten me on the meaning of sfrb in the following ?
> #define ME1_                0x0004  /* Module Enable 1 */
> sfrb(ME1,ME1_);
>
> Thanks,
>    Garst
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by: OSDN - Tired of that same old
> cell phone?  Get a new here for FREE!
> https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> _______________________________________________
> Mspgcc-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mspgcc-users

-- 
*********************************************************************
   ("`-''-/").___..--''"`-._     (\       Dimmy the Wild      UA1ACZ
    `6_ 6  )   `-.  (     ).`-.__.`)      Enterprise Information Sys 
    (_Y_.)'  ._   )  `._ `. ``-..-'       Nevsky prospekt,   20 / 44
  _..`--'_..-_/  /--'_.' ,'               Saint Petersburg,   Russia
 (il),-''  (li),'  ((!.-'                 +7 (812) 314-8860, 5585314
*********************************************************************



Reply via email to