Hello,

 

I see in the SDCC manual that to obtain the higher order byte, I must use

 

unsigned int gint;

unsigned char hob1;

...

hob1 = (gint > > 8) & 0xFF;

 

 

My questions are :

 

a) Which syntax must I use to get the lower byte? ( Is (unsigned char)
(gint) correct ?)

 

b) Is (unsigned char) (gint >> 8) also correct to get the higher byte ?

 

Thank’s for you help

 

Félix

 

 

 

 

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to