compiler / linker failure in asm block
Posted: Mon Jan 17, 2011 11:08 am
Hi,
I am getting the error reported below when trying to compile the following asm-block in flowcode:
char temp;
asm
{
BSF _status, RP0;
MOVLW 0x0;
MOVWF _trisa;
BCF _status, RP0;
MOVLW 0x03;
//MOVWF 0x20;
MOVLW 0x20 ;
MOVWF _temp ;
SWAPF _temp,1 ;
MOVF _temp,0 ;
MOVLW 0x01;
SUBWF 0x20,1 ;
MOVF 0x20,0;
MOVWF _trisa;
}
The Dutch messages do not give any interesting information related to the error, so I will not translate them.
Any help would be greatly appreciated.
Regards,
Kees
http://www.matrixmultimedia.com
Launching the compiler...
C:\Program Files\Matrix Multimedia\Flowcode V4\BoostC\boostc.pic16.flowcode.exe -v -t PIC16F88 "767-07.2-14.c"
.......................
BoostC Optimizing C Compiler Version 6.95 (for PIC16 architecture)
http://www.sourceboost.com
Copyright(C) 2004-2009 Pavel Baranov
Copyright(C) 2004-2009 David Hobday
Licensed to FlowCode User under Single user Pro License for 1 node(s)
Limitations: PIC12,PIC16 max code size:Unlimited, max RAM banks:Unlimited
767-07.2-14.c
Starting preprocessor: C:\PROGRA~1\MATRIX~1\FLOWCO~1\BoostC\pp.exe D:\Archief\projects\Dirksen\pmc\tests\767-07.2-14.c -i C:\PROGRA~1\MATRIX~1\FLOWCO~1\BoostC\include -d _PIC16F88 -la -c2 -o D:\Archief\projects\Dirksen\pmc\tests\767-07.2-14.pp -v -d _BOOSTC -d _PIC16
......................................................................................................................................................................
D:\Archief\projects\Dirksen\pmc\tests\767-07.2-14.c(95): error: error in built-in assembly
D:\Archief\projects\Dirksen\pmc\tests\767-07.2-14.c(96): error: error in built-in assembly
767-07.2-14.c success
failure
Return code = 1
Flowcode kan de C-code niet vertalen vanwege de volgende fout:
Als de flowchart C-code bevat, controleer die dan zorgvuldig. Als de flowchart geen C-code bevat of als die gegarandeerd vrij is van fouten, neem dan contact op met de technische ondersteuning.
FINISHED
I am getting the error reported below when trying to compile the following asm-block in flowcode:
char temp;
asm
{
BSF _status, RP0;
MOVLW 0x0;
MOVWF _trisa;
BCF _status, RP0;
MOVLW 0x03;
//MOVWF 0x20;
MOVLW 0x20 ;
MOVWF _temp ;
SWAPF _temp,1 ;
MOVF _temp,0 ;
MOVLW 0x01;
SUBWF 0x20,1 ;
MOVF 0x20,0;
MOVWF _trisa;
}
The Dutch messages do not give any interesting information related to the error, so I will not translate them.
Any help would be greatly appreciated.
Regards,
Kees
http://www.matrixmultimedia.com
Launching the compiler...
C:\Program Files\Matrix Multimedia\Flowcode V4\BoostC\boostc.pic16.flowcode.exe -v -t PIC16F88 "767-07.2-14.c"
.......................
BoostC Optimizing C Compiler Version 6.95 (for PIC16 architecture)
http://www.sourceboost.com
Copyright(C) 2004-2009 Pavel Baranov
Copyright(C) 2004-2009 David Hobday
Licensed to FlowCode User under Single user Pro License for 1 node(s)
Limitations: PIC12,PIC16 max code size:Unlimited, max RAM banks:Unlimited
767-07.2-14.c
Starting preprocessor: C:\PROGRA~1\MATRIX~1\FLOWCO~1\BoostC\pp.exe D:\Archief\projects\Dirksen\pmc\tests\767-07.2-14.c -i C:\PROGRA~1\MATRIX~1\FLOWCO~1\BoostC\include -d _PIC16F88 -la -c2 -o D:\Archief\projects\Dirksen\pmc\tests\767-07.2-14.pp -v -d _BOOSTC -d _PIC16
......................................................................................................................................................................
D:\Archief\projects\Dirksen\pmc\tests\767-07.2-14.c(95): error: error in built-in assembly
D:\Archief\projects\Dirksen\pmc\tests\767-07.2-14.c(96): error: error in built-in assembly
767-07.2-14.c success
failure
Return code = 1
Flowcode kan de C-code niet vertalen vanwege de volgende fout:
Als de flowchart C-code bevat, controleer die dan zorgvuldig. Als de flowchart geen C-code bevat of als die gegarandeerd vrij is van fouten, neem dan contact op met de technische ondersteuning.
FINISHED