Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#59 Warning message for branching before macros

None
closed
Borut Ražem
None
1
2012-10-18
2012-08-21
Gál Zsolt
No

I made a big faliure when I extended code with banksel macro, when I ported one of my code from a standard PIC16F to an enchanced core PIC16F device.
Here is a little example about it:

btfss STATUS,C
banksel REG1
clrf REG1

I was very tired and I didn't understand what the problem is with it. If the compiler were giving warning message I could find the problem earlier.

Discussion


  • Anonymous
    2012-09-06

    I also don't see any problem (or don't understand where the problem is if it is at all). Probably I'm too tired too ;-)

    MPASM gives the same result as gpasm.

    Gal, can you please give me a hint where the problem is: complete source file and a description of what is going wrong?

    Borut

     

  • Anonymous
    2012-09-06

    OK, OK, now I see it: btfss should skip the clrf REG1, not the banksel REG1 instruction.

    So gpasm should check banksel preceded by skip instruction and throw a warning in such case.

    Borut

     


Anonymous


Cancel   Add attachments