Jump to content
Sign in to follow this  
ysj

Compiler & Editor error

Recommended Posts

I have Win95 operating system and v4.61 compiler.

  asm

   {

        btfsc   _gpio, 3

        goto    $+6

        btfss   _gpio, 3

        goto    $-1

        bsf     _SwMode, SW_ON_OFF

        movf    _SwMode, W

        return

        bcf     _SwMode, SW_ON_OFF

        movf    _SwMode, W

        return

   }    

After compiling the codes above, I received these errors: "Unexpected identifier 'btfsc'

, Missing ';' after 'goto' , Unexpected identifier 'btfss', Missing ';' after 'goto', Unexpected identifier 'bsf',Unexpected identifier 'bcf'Unexpected identifier '_SwMode', Unexpected identifier 'movf'" errors.

 

the codes below are similar as the ones above but they have no errors.

 

   asm     btfsc   _gpio, 3

   asm     goto    $+6

   asm     btfss   _gpio, 3

   asm     goto    $-1

   asm     bsf     _SwMode, SW_ON_OFF

   asm     movf    _SwMode, W

   asm     return

   asm     bcf     _SwMode, SW_ON_OFF

   asm     movf    _SwMode, W

   asm     return

 

 

Also PicAntIDE 4.61 has a problem.

After running PicAntIDE, I compiled and built the source code for my program. When I open an asm or lst file, there's no problem, but if I add more codes and rebuild it, and afterwards open either an asm or lst file, there is no change to the file(asm & lst). The only way it will change is if I use notepad or if I exit and rerun PicAntIDE.

Could you fix for these two problems?

:(

Share this post


Link to post
Share on other sites
Guest Pavel

This was a compiler bug that was introduced by external preprocessor added recently. Fixed in update 4.6.3 (1.6.3 for the c++ compiler)

 

Regards,

Pavel

Share this post


Link to post
Share on other sites

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...