Using the following (on PIC14):
var_u_char_8_b = (unsigned char) (var_int_16 / 8);
where:
var_u_char_8_b is unsigned char
var_int_16 is int
var_u_char_8_b always seems to be zero.
If I get rid of the /8 bit var_u_char_8_b appears (I assume) to hold the
least significant byte of var_int_16.
Is there a problem here? Am I missing something? The work round is
obvious, right shift by 4 bits, but that is less useful if I want to
divide by say 3 or 7.
Any thoughts?
Pete
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Sdcc-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sdcc-user