list file

Go To Last Post
14 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

 I am a beginner at avr and assembly. I wonder what is not listed after .NOLIST? And what is a list file?

This topic has a solution.

Avr

Last Edited: Mon. Feb 17, 2020 - 08:22 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 2

Have you read the documentation for the assembler you are using?

Let’s guess that you are using avrasm2 and google some key words:
Google avrasm2 list file
What do we find?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Kicka wrote:
I wonder what is not listed after .NOLIST?

did you try googling "avrasm2 .NOLIST" ...

 

(other internet search engines are available)

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Yes. But, why not list the include file?

Avr

Last Edited: Sat. Feb 15, 2020 - 05:52 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Listing anything takes additional time and it takes disk space.

 

Jim

Jim Wagner Oregon Research Electronics, Consulting Div. Tangent, OR, USA http://www.orelectronics.net

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks

Avr

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Got it

Avr

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Kicka wrote:
why not list the include file?

The whole point of an include file is that it can be included in many places - so it would soon get boring to have it listed every single time it got included!

 

Also, include files are there to give somewhat of a "black box" interface - so you don't want to be constantly looking into it

 

See Tip #5 in my signature (below; may not be visible on mobile).

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

when I type .nolist .include "m328pdef.inc" .list, the lss file does not change. what do i don't understand?

Avr

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

.lss ? Are you talking about C or AVRASM2 projects?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Yes AVRASM2

Avr

Last Edited: Mon. Feb 17, 2020 - 08:03 PM
This reply has been marked as the solution. 
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1


If you are using AS7 it WILL include the file for you regardless, so if you also include the file .inc file then your list file will show 2 of them and you must wade through the, before you get to the 1st line of code.

 

To stop AS7 including the file and you do your own include with .nolist then you need to go the project properties and delete the file that studio includes

 

 

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

what should i remove?

Avr

Last Edited: Mon. Feb 17, 2020 - 08:15 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

 

it worked

Avr