User manual

Table Of Contents
148
mikoC PRO for PIC32
MikroElektronika
Prototype
#dene Lo(param) ((char *)&param)[0]
Description The function returns low 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 Low byte of number, bits 7..0.
Requires Nothing.
Example
d = 0x12345678;
tmp = Lo(d); // Equals 0x78
Lo(d) = 0xAA; // d equals 0x123456AA
Notes None.
Prototype
#dene Hi(param) ((char *)&param)[1]
Description The function returns high 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 High byte of number, bits 15..8.
Requires Nothing.
Example
d = 0x12345678;
tmp = Hi(d); // Equals 0x56
Hi(d) = 0xAA; // d equals 0x1234AA78
Notes None.
Lo
Hi