User manual

mikroPascal PRO for dsPIC30/33 and PIC24
MikroElektronika
148
Prototype
function Higher(number: longint): byte;
Description Function returns next to the highest byte of number. 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 value
Returns Returns next to the highest byte of number, bits 16..23.
Requires Arguments must be variable of scalar type (i.e. Arithmetic Types and Pointers).
Example
d := 0x12345678;
tmp := Higher(d); // Equals 0x34
Higher(d) := 0xAA; // d equals 0x12AA5678
Notes None.
Prototype
function Highest(number: longint): byte;
Description Function returns the highest byte of number. 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 value
Returns Returns the highest byte of number, bits 24..31.
Requires Arguments must be variable of scalar type (i.e. Arithmetic Types and Pointers).
Example
d := 0x12345678;
tmp := Highest(d); // Equals 0x12
Highest(d) := 0xAA; // d equals 0xAA345678
Notes None.
Higher
Highest