#463 sdcc PIC registers declaration

closed-fixed
5
2013-05-25
2003-02-17
Anonymous
No

The inc2h.pl script includes the following:

#define BIT_AT(base,bitno) bit at
((base<<3)+bitno)

This should be replaced with "sbit" instead of "bit"
because otherwise if you do in your code something
like

SYNC = 1;
SYNC = 0;

the compiler will optimise it and assemble only the last
assign which is not the wanted effect.

Email: em@uglyduck.ath.cx

Discussion

  • Johan Knol

    Johan Knol - 2003-02-24
    • assigned_to: nobody --> sdattalo
     
  • Borut Ražem

    Borut Ražem - 2005-04-10
    • milestone: --> fixed
    • status: open --> closed-fixed
     
  • Borut Ražem

    Borut Ražem - 2005-04-10

    Logged In: YES
    user_id=568035

    Fixed by Vangelis Rokas in support/scripts/inc2h.pl 1.4.

     

Log in to post a comment.