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