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

CCS listing file gives assembly with raw addresses only?

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



Joined: 06 Dec 2010
Posts: 25

View user's profile Send private message

CCS listing file gives assembly with raw addresses only?
PostPosted: Mon Apr 04, 2016 5:58 pm     Reply with quote

Here is an output from spi_write() function:

000A4: MOVFF 06,0A
000A8: MOVF FC9,W
000AA: MOVFF 06,FC9
000AE: RRCF FC7,W
000B0: BNC 00AE

I only see address values and no SFR names being used. Is there a way to cause the CCS compiler to generate the listing file using SFR names instead of their addresses? This shall make it easier for me to read it and also enable me to better my assembly skills since code will be easier to read.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Apr 04, 2016 8:33 pm     Reply with quote

You didn't say what IDE you're using, CCS or MPLAB.

Look in the options menu for your IDE. Explore around.

It's there. Symbolic mode.
matrixofdynamism



Joined: 06 Dec 2010
Posts: 25

View user's profile Send private message

PostPosted: Tue Apr 05, 2016 1:42 am     Reply with quote

Oh, I thought that was intrinsic.

I am using CCS PIC C Compiler.
Ttelmah



Joined: 11 Mar 2010
Posts: 19545

View user's profile Send private message

PostPosted: Tue Apr 05, 2016 2:43 am     Reply with quote

That's the compiler. He is talking about what environment you are running this 'inside'. The IDE (integrated development environment).

The point is that the IDE automatically generates settings that affect the compiler's operating mode. If you are running in an IDE, then it is the IDE setting that you need to change.
asmboy



Joined: 20 Nov 2007
Posts: 2128
Location: albany ny

View user's profile Send private message AIM Address

PostPosted: Sun Apr 10, 2016 10:50 am     Reply with quote

perspective is everything.
as somebody used to looking at LST files
it is pretty obvious that you are using an 18F part
since
ANY register reference between 0xFC5 and 0xFC9
is involved with the SSP serial functions. like SPI

even if you don't look at a data sheet often enough to remember such-
you can CTRL^F search the PDF quickly to see what the reference is ...

self help is the best help Very Happy Very Happy Very Happy
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