The MPLAB C18 Users Guide has quite a few data types listed, but BYTE isn't one of them. Yet, it's used by Microchip in some of their code. Is BYTE a compiler specific type or something? What did I miss?
P.S.: Is there a forum that's better for these coding types of questions anyone can recommend? It seems this one is best suited for hardware questions?
Thanks Mike! I also found a UINT8, which I'm guessing is an 8-bit unsigned integer...
Now I wonder why they want to call an unsigned char a "BYTE"...I thought they'd want to avoid using the word "byte" specifically because it's not always 8 bits on every machine. Hmm...
The word "BYTE" is 8 bits.. period... It's the integer that's ambiguous... The Int comes from the size of the working register. The C language, on the whole, is string driven.. hence the character definition...Personally I prefer,, Byte, Word, Longword, etc... Its more descriptive....
Nowadays, as you've seen we are defining Uint8,16,32 etc.. AND shorts as opposed to longs.....AARRGGH.
The MPLAB C18 Users Guide has quite a few data types listed, but BYTE isn't one of them. Yet, it's used by Microchip in some of their code. Is BYTE a compiler specific type or something? What did I miss?