I am testing the specification of assember inline in the newest version, mikroC PRO for dsPIC30/33 and PIC24 - Demo version. And I found a problem which is your compiler is not compatible with the standard assembly language of microChip completely. Namely, the instructions worked with negative numbers did not operate correctly.
For example:
Code: Select all
mov #5, W0 ; Right!
mov #-5, W0 ; Wrong --> The compiler is generated an error is ;"invalid expression"
or,
sftac A,#4 ; Compile is OK, but
sftac A,#-4 ; Not OK
Please let me know this bugs and wish you correct them as soon as.
Thanks for your reply!