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

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
#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 PCWHD IDE COMPILER