Hi,

> One day I had the impression that using unsigned char or uint8_t worked even
> if config word was bigger than 8 bits. Am I right?

That's right: the data type is ignored if the address (__at()) refers
to a config location. I noticed this when I looked into the problem
with the enhanced pic14-devices but decided not to change it. I do not
see the "right" way: Specifying uint16_t might trick the reader into
believing that 0x2007 and 0x2008 (or 0x8007/8) are set at the same
time, since the __at() directive typically uses a byte-based
addressing mode.
I'd recommend to use a larger type (uint16_t) to prevent changes in
the compiler (implicit, early range check and enforcement) from
breaking the definition.

Raphael

------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to