Jump to content

Missing Labels In .casm File


Recommended Posts

Bug description:

Under certain conditions labels are missing in the .casm file.

 

Steps to reproduce:

#include <system.h>

unsigned char var;

void main()
{
var = 0;
adcon1.0 = var.0;
}

 

 

Expected behaviour:

The following is a section of the .casm file. Line 0007 is a jump to label1 which does not exists in the .casm file. In the corresponding .asm file label1 is placed on line 000A. So, the resulting code works but is not readable in the debugger.

 

void main()

{
var = 0;
0003  1283	  BCF STATUS, RP0
0004  1303	  BCF STATUS, RP1
0005  01A0	  CLRF gbl_var

adcon1.0 = var.0;
0006  1C20	  BTFSS gbl_var,0
0007  280A	  GOTO	label1
0008  1683	  BSF STATUS, RP0
0009  141F	  BSF gbl_adcon1,0
000A  1283	  BCF STATUS, RP0
000B  1820	  BTFSC gbl_var,0
000D  1683	  BSF STATUS, RP0
000E  101F	  BCF gbl_adcon1,0

}

 

Is the problem 100% reproduceable:

Yes.

 

IDE version: 6.82

Compiler: BoostC,

Compiler version: boostc.pic16.exe / v6.82

Target device: PIC16F88

OS: WinXP

 

Comments:

This is a minor bug because the resulting code and the behaviour of the debugger are correct. But the asm code is hard to read.

 

BR

manuel123

Link to post
Share on other sites
  • 4 weeks later...

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...
×
×
  • Create New...