pic-as assembler 18F family - syntax error - SOLVED

Thread Starter

atferrari

Joined Jan 6, 2004
5,001
Porting previous code assembled with MPASM to pic-as assembler - 18F family.

I am getting syntax error with these two lines

;------------------------------------------------------------------------------

;3 - Enable individually the sources of interrupt above.

BSF PIE1,TMR2IE ;TMR2 match interrupt enabled
;------------------------------------------------------------------------------

;4 - Clear the flags of the interrupts above.

BCF PIR1,TMR2IF ;clear TMR2 match interrupt flag
;------------------------------------------------------------------------------

I feel that the actuall error is somewhere else but I do not know where to look at.
 

Thread Starter

atferrari

Joined Jan 6, 2004
5,001
Nothing like RTFM... !

PIC-AS Assembler, has all SFR's bits predefined so no need to mention the SFR but just the bit of interest.

;------------------------------------------------------------------------------

3 - Enable individually the sources of interrupt above.

BSF TMR2IE ;TMR2 match interrupt enabled
;------------------------------------------------------------------------------

;4 - Clear the flags of the interrupts above.

BCF TMR2IF ;clear TMR2 match interrupt flag
;------------------------------------------------------------------------------
 
Top