Datasheet
Hi
Higher
Highest
103
MIKROELEKTRONIKA - SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Specifics
mikroPASCAL PRO for AVR
CHAPTER 3
Prototype
function Hi(number: longint): byte;
Returns Returns next to the lowest byte of number, bits 8..15.
Description
Function returns next to the lowest 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.
Requires Arguments must be variable of scalar type (i.e. Arithmetic Types and Pointers).
Example
d := 0x1AC30F4;
tmp := Hi(d); // Equals 0x30
Prototype
function Higher(number: longint): byte;
Returns Returns next to the highest byte of number, bits 16..23.
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.
Requires Arguments must be variable of scalar type (i.e. Arithmetic Types and Pointers).
Example
d := 0x1AC30F4;
tmp := Higher(d); // Equals 0xAC
Prototype
function Highest(number: longint): byte;
Returns Returns the highest byte of number, bits 24..31.
Description
Function returns the highest byte of number. Function does not interpret bit pat-
terns 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.
Requires Arguments must be variable of scalar type (i.e. Arithmetic Types and Pointers).
Example
d := 0x1AC30F4;
tmp := Highest(d); // Equals 0x01