DSPIC, BTSC f,#bit4 error

Discuss about beta versions of mikroPascal compiler.
Post Reply
Author
Message
yo2lio
Posts: 1878
Joined: 19 Sep 2006 12:57
Location: Romania, Arad City
Contact:

DSPIC, BTSC f,#bit4 error

#1 Post by yo2lio » 27 Dec 2007 09:54

Hi,

This instruction is not accepted by compiler :
BTSC f,#bit4 >> Bit Test f, Skip if Clear

only BTSC Ws,#bit4 >> Bit Test Ws, Skip if Clear compile OK !

Code: Select all

  asm
    BTSC PORTB,#15
  end;
0:29 E-420 Invalid ASM instruction (53): PORTB (0x000206) #15

Same problems for :

Code: Select all

BTSS PORTB,#15

BTST PORTB,#15

BTSTS PORTB,#15

BTG PORTB,#15

CP1 PORTB

CP1 W12

NOPR

Best regards, Florin Andrei Medrea.

http://www.microelemente.ro/
http://www.microelemente.ro/produse-si-servicii/
http://www.microelemente.ro/custom-software/

mail : florin@microelemente.ro

User avatar
zristic
mikroElektronika team
Posts: 6608
Joined: 03 Aug 2004 12:59
Contact:

Re: DSPIC, BTSC f,#bit4 error

#2 Post by zristic » 28 Dec 2007 08:06

Did you use PORTB before asm block?

yo2lio
Posts: 1878
Joined: 19 Sep 2006 12:57
Location: Romania, Arad City
Contact:

#3 Post by yo2lio » 28 Dec 2007 08:48

YES !
Best regards, Florin Andrei Medrea.

http://www.microelemente.ro/
http://www.microelemente.ro/produse-si-servicii/
http://www.microelemente.ro/custom-software/

mail : florin@microelemente.ro

User avatar
zristic
mikroElektronika team
Posts: 6608
Joined: 03 Aug 2004 12:59
Contact:

#4 Post by zristic » 03 Jan 2008 13:46

Mea culpa. :oops:

Post Reply

Return to “mikroPascal Beta testing”