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

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
#ASM #ENDASM
Syntax:
Elements:
Purpose:
Examples:
Example Files:
Also See:
#ASM
#ASM ASIS
code is a list of assembly language instructions
The lines between the #ASM and #ENDASM are treated as assembly code to be
inserted. These may be
used anywhere an expression is allowed. The syntax is described on the
following page. Function return
values are sent in W0 for 16-bit, and W0, w1 for 32 bit. Be aware that any C code
after the #ENDASM and
before the end of the function may corrupt the value.
If the second form is used with ASIS then the compiler will not do any
optimization on the assembly. The
assembly code is used as-is.
int find_parity(int data){
ex_glint.c
None
#ENDASM
}
or
code
int count;
#asm
MOV #0x08, W0
MOV W0, count
CLR W0
loop:
XOR.B data,W0
RRC data,W0
DEC count,F
BRA NZ, loop
MOV #0x01,W0
ADD count,F
MOV count, W0
MOV W0, _RETURN_
#endasm
91

Related parts for PCDIDE COMPILER