CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

.lst file out of order a few lines

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Will Reeve



Joined: 30 Oct 2003
Posts: 209
Location: Norfolk, England

View user's profile Send private message Send e-mail Visit poster's website MSN Messenger

.lst file out of order a few lines
PostPosted: Tue Oct 10, 2006 8:58 am     Reply with quote

A strange thing is happening. The .lst file is a few lines displaced from the source code. This causes breaks to be placed in the incorrect location! Is this a bug? For example here is a simple function:

....................
Code:
/*****************************************************************************
.................... * read_id
.................... * Purpose: Reads the ID of the unit
.................... */
.................... void read_id() {
001A0:  BCF    F9E.6
001A2:  GOTO   0080
.................... int1 dummy;
....................    output_high(LSBGAIN);
....................    output_float(MSBGAIN);
*
003D4:  BCF    F9A.6
003D6:  BSF    F91.6
....................    if (input(MSBGAIN)) bit_set(IREGISTER,7);
003D8:  BSF    F9A.7
....................
003DA:  BSF    F9A.7
003DC:  BTFSC  F88.7
003DE:  BSF    47.7
....................    output_high(MSBGAIN);
....................    output_float(LSBGAIN);
003E0:  BCF    F9A.7
003E2:  BSF    F91.7
....................    if (input(LSBGAIN)) bit_set(IREGISTER,6);
003E4:  BSF    F9A.6
....................
003E6:  BSF    F9A.6
003E8:  BTFSC  F88.6
003EA:  BSF    47.6
....................    output_low(LSBGAIN);
....................    output_float(MSBGAIN);
003EC:  BCF    F9A.6
003EE:  BCF    F91.6
....................    if (input(MSBGAIN)) bit_set(IREGISTER,5);
003F0:  BSF    F9A.7
....................
003F2:  BSF    F9A.7
003F4:  BTFSC  F88.7
003F6:  BSF    47.5
....................    output_low(MSBGAIN);
....................    output_float(LSBGAIN);
003F8:  BCF    F9A.7
003FA:  BCF    F91.7
....................    if (input(LSBGAIN)) bit_set(IREGISTER,4);
003FC:  BSF    F9A.6
.................... } // read_id
003FE:  BSF    F9A.6
00400:  BTFSC  F88.6
00402:  BSF    47.4
....................
00404:  RETLW  00
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue Oct 10, 2006 11:51 am     Reply with quote

Post your compiler version and a short, but complete demo program.
The program should be "drop in" compilable into MPLAB, with no
changes required.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group