Mikroelektronika MIKROE-350 Data Sheet

Page of 526
Highest
Inc
Dec
97
MIKROELEKTRONIKA
- SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Specifics
mikroBasic PRO for AVR
CHAPTER 3
Prototype
sub function Highest(number as longintas 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
Prototype
sub procedure Inc(dim byref par as longint)
Returns
Nothing.
Description
Increases parameter 
par
by 1.
Requires
Nothing.
Example
p = 4
Inc(p)  ' p is now 5
Prototype
sub procedure Dec(dim byref par as longint)
Returns
Nothing.
Description
Decreases parameter 
par
by 1.
Requires
Nothing.
Example
p = 4
Dec(p)  ' p is now 3