View previous topic :: View next topic |
Author |
Message |
matrixofdynamism
Joined: 06 Dec 2010 Posts: 25
|
CCS listing file gives assembly with raw addresses only? |
Posted: Mon Apr 04, 2016 5:58 pm |
|
|
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. |
|
![](templates/subSilver/images/spacer.gif) |
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Mon Apr 04, 2016 8:33 pm |
|
|
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. |
|
![](templates/subSilver/images/spacer.gif) |
matrixofdynamism
Joined: 06 Dec 2010 Posts: 25
|
|
Posted: Tue Apr 05, 2016 1:42 am |
|
|
Oh, I thought that was intrinsic.
I am using CCS PIC C Compiler. |
|
![](templates/subSilver/images/spacer.gif) |
Ttelmah
Joined: 11 Mar 2010 Posts: 19382
|
|
Posted: Tue Apr 05, 2016 2:43 am |
|
|
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. |
|
![](templates/subSilver/images/spacer.gif) |
asmboy
Joined: 20 Nov 2007 Posts: 2128 Location: albany ny
|
|
Posted: Sun Apr 10, 2016 10:50 am |
|
|
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](images/smiles/icon_biggrin.gif) |
|
![](templates/subSilver/images/spacer.gif) |
|