PCWHD IDE COMPILER Custom Computer Services Inc (CCS), PCWHD IDE COMPILER Datasheet - Page 312

PCWHD PIC10,16,18,24, DSPIC

PCWHD IDE COMPILER

Manufacturer Part Number
PCWHD IDE COMPILER
Description
PCWHD PIC10,16,18,24, DSPIC
Manufacturer
Custom Computer Services Inc (CCS)
Type
Compilerr
Datasheet

Specifications of PCWHD IDE COMPILER

For Use With/related Products
Microchip PIC10, PIC12, PIC16, PIC18, PIC24, dsPIC MCUs
Lead Free Status / RoHS Status
Not applicable / Not applicable
Other names
429-1009
swap( )
Syntax:
Parameters:
Returns:
Function:
Availability:
Requires:
Examples:
Example Files:
Also See:
tolower( ) toupper( )
Syntax:
Parameters:
Returns:
Function:
Availability:
Requires:
298
swap (lvalue)
result = swap(lvalue)
lvalue is a byte variable
A byte
Swaps the upper nibble with the lower nibble of the specified byte. This is the
same as:
byte = (byte << 4) | (byte >> 4);
All devices.
Nothing
x=0x45;
swap(x);
//x now is 0x54
int x = 0x42;
int result;
result = swap(x);
// result is 0x24;
None
rotate_right(),
result = tolower (cvalue)
result = toupper (cvalue)
cvalue is a character
An 8 bit character
These functions change the case of letters in the alphabet.
TOLOWER(X) will return 'a'..'z' for X in 'A'..'Z' and all other characters are
unchanged. TOUPPER(X) will return 'A'..'Z' for X in 'a'..'z' and all other characters
are unchanged.
All devices.
Nothing
rotate_left()

Related parts for PCWHD IDE COMPILER