12-16-2016, 03:10 PM
Kod sada izgleda ovako :
// IRQ handler for IC2 (RD1) = DIR
// handled on every state change
void __attribute__((__no_auto_psv__, __interrupt__)) _IC2Interrupt(void)
{
IFS0bits.IC2IF = 0; // clear IF
asm ("nop");
asm ("movlw 0x01");
asm ("movwf CLKCNT");
asm ("btfsc DIR");
asm ("goto INTEND");
asm ("comf CLKCNT,f");
asm ("INTEND");
}
Opet - BUILD FAILED
Jedino prodje NOP - i za nju nema izvešataja o greški !
Za ostalo je:
C:\Users\Zeljko\AppData\Local\Temp/ccd6pLlr.s: Assembler messages:
C:\Users\Zeljko\AppData\Local\Temp/ccd6pLlr.s:5829: Error: Invalid mnemonic: 'movlw'
C:\Users\Zeljko\AppData\Local\Temp/ccd6pLlr.s:5831: Error: Invalid mnemonic: 'movwf'
C:\Users\Zeljko\AppData\Local\Temp/ccd6pLlr.s:5833: Error: Invalid mnemonic: 'btfsc'
C:\Users\Zeljko\AppData\Local\Temp/ccd6pLlr.s:5837: Error: Invalid mnemonic: 'comf'
C:\Users\Zeljko\AppData\Local\Temp/ccd6pLlr.s:5839: Error: Invalid mnemonic: 'intend'
// IRQ handler for IC2 (RD1) = DIR
// handled on every state change
void __attribute__((__no_auto_psv__, __interrupt__)) _IC2Interrupt(void)
{
IFS0bits.IC2IF = 0; // clear IF
asm ("nop");
asm ("movlw 0x01");
asm ("movwf CLKCNT");
asm ("btfsc DIR");
asm ("goto INTEND");
asm ("comf CLKCNT,f");
asm ("INTEND");
}
Opet - BUILD FAILED
Jedino prodje NOP - i za nju nema izvešataja o greški !
Za ostalo je:
C:\Users\Zeljko\AppData\Local\Temp/ccd6pLlr.s: Assembler messages:
C:\Users\Zeljko\AppData\Local\Temp/ccd6pLlr.s:5829: Error: Invalid mnemonic: 'movlw'
C:\Users\Zeljko\AppData\Local\Temp/ccd6pLlr.s:5831: Error: Invalid mnemonic: 'movwf'
C:\Users\Zeljko\AppData\Local\Temp/ccd6pLlr.s:5833: Error: Invalid mnemonic: 'btfsc'
C:\Users\Zeljko\AppData\Local\Temp/ccd6pLlr.s:5837: Error: Invalid mnemonic: 'comf'
C:\Users\Zeljko\AppData\Local\Temp/ccd6pLlr.s:5839: Error: Invalid mnemonic: 'intend'