Luit van Drongelen wrote:
> I was wondering if I could assign the value of a short int (0x0FFF for
> example) to two config bytes (like the PDC0L and PDC0H bytes) in a
> single line, or any other simple way...
> (not sure this is a question for this mailing, so please tell me if it
> isn't)
Im using a special union value for this. Example:
union {
float f;
long l;
int i;
char c[4];
} multi_val;
with this i can assign the chars of a int/float/whatever value directly
to register via the c1-4.
Dont know if this is a good solution.
-------------------------------------------------------------------------
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