User manual

Table Of Contents
mikroC PRO for PIC32
MikroElektronika
149
Prototype
#dene Higher(param) ((char *)&param)[2]
Description The function returns higher byte of number. The function does not interpret bit patterns of number
it merely returns 8 bits as found in register.
This is an “inline” routine; code is generated in the place of the call, so the call doesn’t count against
the nested call limit.
Parameters - number: input number
Returns Higher byte of number, bits 23..16.
Requires Nothing.
Example
d = 0x12345678;
tmp = Higher(d); // Equals 0x34
Higher(d) = 0xAA; // d equals 0x12AA5678
Notes None.
Prototype
#dene Highest(param) ((char *)&param)[3]
Description The function returns highest byte of number. The function does not interpret bit patterns of number
– it merely returns 8 bits as found in register.
This is an “inline” routine; code is generated in the place of the call, so the call doesn’t count against
the nested call limit.
Parameters - number: input number
Returns Highest byte of number, bits 31..24.
Requires Nothing.
Example
d = 0x12345678;
tmp = Highest(d); // Equals 0x12
Highest(d) = 0xAA; // d equals 0xAA345678
Notes None.
Higher
Highest