Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Help - "Error 102 : Expect Comma" in CCS Compiler.

Status
Not open for further replies.

cadrjr

Newbie level 6
Joined
Apr 18, 2003
Messages
14
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
91
expect commapic

I am using the CCS PICC Compiler for PIC.
I want to insert a little ASM into my C program.
When I try to compile the following, I get an "Error 102 : Expect Comma" error after the BSF instruction.

What am I doing wrong ?


void ser_init() {
#asm SER_INIT:
BSF STATUS,5 ; select bank 1
BCF TRISB,1 ; set B1 as an output
BCF STATUS,5 ; select bank 0
BCF PORTB,1 ; set B1 low
RETURN
#endasm
}
 

void ser_init() {
#asm SER_INIT:
BSF STATUS,5 ; select bank 1
BCF TRISB,1 ; set B1 as an output
BCF STATUS,5 ; select bank 0
BCF PORTB,1 ; set B1 low
RETURN
#endasm
}


Hey man dont use ';'

Enjoy :)
 

Re: Help - "Error 102 : Expect Comma" in CCS Compi

Thanks man !
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top