PCDIDE COMPILER Custom Computer Services Inc (CCS), PCDIDE COMPILER Datasheet - Page 178

PCD C-COMPILER PIC24, DSPIC

PCDIDE COMPILER

Manufacturer Part Number
PCDIDE COMPILER
Description
PCD C-COMPILER PIC24, DSPIC
Manufacturer
Custom Computer Services Inc (CCS)
Type
Compilerr
Datasheet

Specifications of PCDIDE COMPILER

For Use With/related Products
Microchip PIC24/dsPIC®
Lead Free Status / RoHS Status
Not applicable / Not applicable
Other names
429-1008
bit_last( )
Syntax:
Parameters:
Returns:
Function:
Availability:
Requires:
Examples:
Example Files:
Also See:
164
N = bit_last (value, var)
N = bit_last(var)
value is a 0 to 1 to search for
var is a 16 bit integer.
An 8-bit integer
The first function will find the first occurrence of value in the var starting with the
most significant bit.
The second function will note the most significant bit of var and then search for the
first different bit.
Both functions return a 0 based result.
30F/33F/24-bit devices
Nothing
//Bit pattern
//11101110 11111111
Int16 var = 0xEEFF;
Int8 N = 0;
//N is assigned 12
N = bit_last (0, var);
//N is assigned 12
N = bit_last(var);
None
shift_right(), shift_left(), rotate_right(),
rotate_left()

Related parts for PCDIDE COMPILER