ASM
...assembler code
ENDASM
Look up proper syntax in manual.
Robert
Edit: EndTP, is that a new command in PBP3?
ASM
...assembler code
ENDASM
Look up proper syntax in manual.
Robert
Edit: EndTP, is that a new command in PBP3?
Last edited by Demon; - 25th April 2013 at 12:48.
I found the solution.
Writing :
movlw LOW DataTS
is a non-sense since DataTS is a variable, not a constant
and movlw stands for "move litteral to w"
other mov instructions are certainly more appropriate. I need to search.
Demon, all this syntax comes from Darrel examples. It works !
MikeBZH
I don't doubt it works, but are you compiling in PVP or ASM?
Hi Demon
I assume you mean PBP, not PVP.
The code is written in PBP with some sections in ASM.
You're right. The block :
DataTP ;
#include "KPPV3.ASM"
EndTP
DataTC ;
#include "KPCV3.ASM"
EndTC
DataTB ;
#include "KPBV3.ASM"
EndTB
is inside an ASM / ENDASM section
MikeBZH
To complete this topic and for anybody interested by the solution :
DataTS is first splitted into three bytes :
DataTSL = DataTS.BYTE0
DataTSH = DataTS.BYTE1
DataTSU = DataTS.BYTE2
then the program is the same as before but movlw are replaced by movf
movf _DataTSL,W
addwf _AdTS,W
movwf _ADSL
movf _DataTSH,W
addwfc _AdTS+1,W
movwf _ADSH
movf _DataTSU,W
addwfc _ZERO,W
movwf _ADSU
No more error. It works.
MikeBZH
Bookmarks