Dear Daniel
I think the int8 definition is ok.
I extract the below form ...\include\mcf52xxx.h
/*
* The basic data types
*/
typedef unsigned char uint8; /* 8 bits */
typedef unsigned short int uint16; /* 16 bits */
typedef unsigned long int uint32; /* 32 bits */
typedef char int8; /* 8 bits */
typedef short int int16; /* 16 bits */
typedef int int32; /* 32 bits */
typedef volatile int8 vint8; /* 8 bits */
typedef volatile int16 vint16; /* 16 bits */
typedef volatile int32 vint32; /* 32 bits */
typedef volatile uint8 vuint8; /* 8 bits */
typedef volatile uint16 vuint16; /* 16 bits */
typedef volatile uint32 vuint32; /* 32 bits */
Curious:
- In a text:
a=-2;
if(a>0.) ...
The answer was true !!!like the considered value was 254 and not -2 ...
Should I change int8 definition?
Thanks for "saturday help" !!!!
Ricardo Raupp