Jump to content

TomF

EstablishedMember
  • Content Count

    111
  • Joined

  • Last visited

Posts posted by TomF


  1. I believe i have a bug with static volatile unsigned char:

    I have sent you my project via email. Can you please let me know if you have received it please.

    		static volatile unsigned char nDisplayId = 0;					// Indictes which display needs updating.
    03A7  0020  	MOVLB 0x00
    03A8  11EF  	BCF CompGblVar54,3
    03AB  11EF  	BCF CompGblVar54,3
    03B0  11EF  	BCF CompGblVar54,3
    03B5  11EF  	BCF CompGblVar54,3
    03BA  11EF  	BCF CompGblVar54,3
    03BF  11EF  	BCF CompGblVar54,3
    03C4  11EF  	BCF CompGblVar54,3
    03C9  11EF  	BCF CompGblVar54,3
    03CE  11EF  	BCF CompGblVar54,3
    03D3  11EF  	BCF CompGblVar54,3
    03D8  11EF  	BCF CompGblVar54,3
    03DD  11EF  	BCF CompGblVar54,3
    03E3  0020  	MOVLB 0x00
    03E4  11EF  	BCF CompGblVar54,3
    03EA  0020  	MOVLB 0x00
    03EB  11EF  	BCF CompGblVar54,3
    03F1  0020  	MOVLB 0x00
    03F2  11EF  	BCF CompGblVar54,3
    03F8  0020  	MOVLB 0x00
    03F9  11EF  	BCF CompGblVar54,3
    03FF  0020  	MOVLB 0x00
    0400  11EF  	BCF CompGblVar54,3
    0406  0020  	MOVLB 0x00
    0407  11EF  	BCF CompGblVar54,3
    040D  0020  	MOVLB 0x00
    040E  11EF  	BCF CompGblVar54,3
    0414  0020  	MOVLB 0x00
    0415  11EF  	BCF CompGblVar54,3
    041B  0020  	MOVLB 0x00
    041C  11EF  	BCF CompGblVar54,3
    0422  0020  	MOVLB 0x00
    0423  11EF  	BCF CompGblVar54,3
    0429  0020  	MOVLB 0x00
    042A  11EF  	BCF CompGblVar54,3
    0430  0020  	MOVLB 0x00
    0431  11EF  	BCF CompGblVar54,3
    0437  0020  	MOVLB 0x00
    0438  11EF  	BCF CompGblVar54,3
    043E  0020  	MOVLB 0x00
    043F  11EF  	BCF CompGblVar54,3
    0445  0020  	MOVLB 0x00
    0446  11EF  	BCF CompGblVar54,3
    044C  0020  	MOVLB 0x00
    044D  11EF  	BCF CompGblVar54,3
    0453  0020  	MOVLB 0x00
    0454  11EF  	BCF CompGblVar54,3
    045A  0020  	MOVLB 0x00
    045B  11EF  	BCF CompGblVar54,3
    0461  0020  	MOVLB 0x00
    0462  11EF  	BCF CompGblVar54,3
    0468  0020  	MOVLB 0x00
    0469  11EF  	BCF CompGblVar54,3
    046F  0020  	MOVLB 0x00
    0470  11EF  	BCF CompGblVar54,3
    0476  0020  	MOVLB 0x00
    0477  11EF  	BCF CompGblVar54,3
    047D  0020  	MOVLB 0x00
    047E  11EF  	BCF CompGblVar54,3
    0484  0020  	MOVLB 0x00
    0485  11EF  	BCF CompGblVar54,3
    048B  0020  	MOVLB 0x00
    048C  11EF  	BCF CompGblVar54,3
    0492  0020  	MOVLB 0x00
    0493  11EF  	BCF CompGblVar54,3
    0499  0020  	MOVLB 0x00
    049A  11EF  	BCF CompGblVar54,3
    04A0  0020  	MOVLB 0x00
    04A1  11EF  	BCF CompGblVar54,3
    04A7  0020  	MOVLB 0x00
    04A8  11EF  	BCF CompGblVar54,3
    04AE  0020  	MOVLB 0x00
    04AF  11EF  	BCF CompGblVar54,3
    04B5  0020  	MOVLB 0x00
    04B6  11EF  	BCF CompGblVar54,3
    04BC  0020  	MOVLB 0x00
    04BD  11EF  	BCF CompGblVar54,3
    04C3  0020  	MOVLB 0x00
    04C4  11EF  	BCF CompGblVar54,3
    04CA  0020  	MOVLB 0x00
    04CB  11EF  	BCF CompGblVar54,3
    04D1  0020  	MOVLB 0x00
    04D2  11EF  	BCF CompGblVar54,3
    04D8  0020  	MOVLB 0x00
    04D9  11EF  	BCF CompGblVar54,3
    04DF  0020  	MOVLB 0x00
    04E0  11EF  	BCF CompGblVar54,3
    04E6  0020  	MOVLB 0x00
    04E7  11EF  	BCF CompGblVar54,3
    04ED  0020  	MOVLB 0x00
    04EE  11EF  	BCF CompGblVar54,3
    04F4  0020  	MOVLB 0x00
    04F5  11EF  	BCF CompGblVar54,3
    04FB  0020  	MOVLB 0x00
    04FC  11EF  	BCF CompGblVar54,3
    0502  0020  	MOVLB 0x00
    0503  11EF  	BCF CompGblVar54,3
    050D  11EF  	BCF CompGblVar54,3
    0515  11EF  	BCF CompGblVar54,3
    051A  11EF  	BCF CompGblVar54,3
    051F  11EF  	BCF CompGblVar54,3
    0524  11EF  	BCF CompGblVar54,3
    0528  11EF  	BCF CompGblVar54,3
    052D  11EF  	BCF CompGblVar54,3
    0532  11EF  	BCF CompGblVar54,3
    0537  11EF  	BCF CompGblVar54,3
    053C  11EF  	BCF CompGblVar54,3
    0541  11EF  	BCF CompGblVar54,3
    0546  11EF  	BCF CompGblVar54,3
    054B  11EF  	BCF CompGblVar54,3
    0550  11EF  	BCF CompGblVar54,3
    0555  11EF  	BCF CompGblVar54,3
    055A  11EF  	BCF CompGblVar54,3
    055F  11EF  	BCF CompGblVar54,3
    0563  11EF  	BCF CompGblVar54,3
    0568  11EF  	BCF CompGblVar54,3
    056D  11EF  	BCF CompGblVar54,3
    0572  11EF  	BCF CompGblVar54,3
    0577  11EF  	BCF CompGblVar54,3
    057C  11EF  	BCF CompGblVar54,3
    0581  11EF  	BCF CompGblVar54,3
    0586  11EF  	BCF CompGblVar54,3
    058B  11EF  	BCF CompGblVar54,3
    058F  11EF  	BCF CompGblVar54,3
    0594  11EF  	BCF CompGblVar54,3
    0599  11EF  	BCF CompGblVar54,3
    059D  11EF  	BCF CompGblVar54,3
    05A2  11EF  	BCF CompGblVar54,3
    05A7  11EF  	BCF CompGblVar54,3
    05AC  11EF  	BCF CompGblVar54,3
    05B1  11EF  	BCF CompGblVar54,3
    05B6  11EF  	BCF CompGblVar54,3
    05BB  11EF  	BCF CompGblVar54,3
    05C0  11EF  	BCF CompGblVar54,3
    05C5  11EF  	BCF CompGblVar54,3
    05CA  11EF  	BCF CompGblVar54,3
    05CF  11EF  	BCF CompGblVar54,3
    05D4  11EF  	BCF CompGblVar54,3
    05D8  11EF  	BCF CompGblVar54,3
    05DD  11EF  	BCF CompGblVar54,3
    05E2  11EF  	BCF CompGblVar54,3
    05E7  11EF  	BCF CompGblVar54,3
    05EC  11EF  	BCF CompGblVar54,3
    05F1  11EF  	BCF CompGblVar54,3
    05F6  11EF  	BCF CompGblVar54,3
    05FB  11EF  	BCF CompGblVar54,3
    05FF  11EF  	BCF CompGblVar54,3
    0604  11EF  	BCF CompGblVar54,3
    0609  11EF  	BCF CompGblVar54,3
    060E  11EF  	BCF CompGblVar54,3
    0613  11EF  	BCF CompGblVar54,3
    0617  11EF  	BCF CompGblVar54,3
    061B  11EF  	BCF CompGblVar54,3
    061F  11EF  	BCF CompGblVar54,3
    0667  19EF  	BTFSC CompGblVar54,3
    0668  2E6B  	GOTO	label47
    0669  01F4  	CLRF interrupt_57_nDisplayId
    066A  15EF  	BSF CompGblVar54,3
    066B        label47
    
    

  2. If you run the program continuously for days without shutting it down, compiling every 10 mins or so, eventually the icons on the toolbar disappear because the program is leaking memory.

     

    Look in task manager, compile, compile again, and again and again. Each compile uses more and more memory.

     

    I've just closed the program as it was using 200M or ram, re-opened it, and now it is using 77M ram.

     

    Each compile appears to add 1.5M to the usage in task manager.


  3. This compiles:

     

    bool bNewState = true;

     

    bool bCurrentOutputState = test_bit(LAT_DIGITAL_OUT, PIN_DIGITAL_OUT);

     

    if( bNewState != bCurrentOutputState )

    {

    }

     

    This compiles:

     

     

    bool bNewState = true;

     

    if( bNewState != (test_bit(LAT_DIGITAL_OUT, PIN_DIGITAL_OUT) ? true:false) )

    {

    }

     

     

    This doesn't:

     

     

    bool bNewState = true;

     

    if( bNewState != (bool) test_bit(LAT_DIGITAL_OUT, PIN_DIGITAL_OUT) )

    {

    }

     

     

    Any idea what is wrong with the 3rd code segment?


  4. Create a new file

     

    type (dont add ln, thats the line numbers!):

     

    ln1 hello
    ln2
    ln3 hello
    ln4
    ln5 hello
    ln6
    

     

    place the cursor at line 1

     

    CTRL+F

     

    enter: hello

     

    uncheck all options, select "down".

     

    Press OK, The text is found at ln 3

     

    Press F3, The text is found at ln 1

     

    Press F3, the text is found at ln 5

     

    Press F3, the text is found at ln 1

     

    Press F3, The text is found at ln 5

     

    Press F3, The text is found at ln 1

     

    etc

     

     

    I use find all the time, and its not finding all instances, i have to use an external text editor. This needs to be fixed ASAP.


  5. The docs state that when i click compile, the program will look on the network for boostbuild every time, it looks for 3 seconds, then uses a local version if remote version is not found.

     

    See: (Help -> IDE User manual (page 39))

     

    When i compile, there is a 3 sec delay between me pressing the compile button, and the output window doing stuff, so i assumed this is the 3 sec mentioned above?

     

    So it is a problem, and should have a disable setting as i will *never* need to compile over a remote PC.


  6. SB V7.05

     

    #include <system.h>
    
    void main()
    {
      for( unsigned char x = 0; x < 32; x++ )
      {
      nop();
      }
    
      x++;
    }
    
    

     

    This compiles ok. Is this correct? surely when x++ is executed, 'x' is out of scope (x exists only in the for loop)

×
×
  • Create New...