Forum Menu




 


Log in Problems?
New User? Sign Up!
AVR Freaks Forum Index

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
tubecut
PostPosted: Jun 01, 2012 - 12:50 AM
Resident


Joined: May 27, 2002
Posts: 737
Location: Alabama USA

Is there a way to turn on line numbers
when using the assembler in the AS4 IDE?

_________________
I'll believe corporations
are people when Texas executes one.


Last edited by tubecut on Jun 08, 2012 - 01:41 AM; edited 1 time in total
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
indianajones11
PostPosted: Jun 01, 2012 - 01:25 AM
Raving lunatic


Joined: Nov 28, 2004
Posts: 3552
Location: San Diego, Ca

Nope. If using Winavr, you can use PN to show line #s .

_________________
1) Studio 4.18 build 716 (SP3)
2) WinAvr 20100110
3) PN, all on Doze XP... For Now
A) Avr Dragon ver. 1
B) Avr MKII ISP, 2009 model
C) MKII JTAGICE ver. 1
 
 View user's profile Send private message  
Reply with quote Back to top
js
PostPosted: Jun 01, 2012 - 02:33 AM
10k+ Postman


Joined: Mar 28, 2001
Posts: 20390
Location: Sydney, Australia (Gum trees, Koalas and Kangaroos, No Edelweiss)

...however the line number where the cursor is located is shown at the bottom R/H side of the screen if that helps.

_________________
John Samperi
Ampertronics Pty. Ltd.
www.ampertronics.com.au
* Electronic Design * Custom Products * Contract Assembly
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
tubecut
PostPosted: Jun 01, 2012 - 02:56 PM
Resident


Joined: May 27, 2002
Posts: 737
Location: Alabama USA

OK, thanks for the replies.
Quote:
If using Winavr


I am not using , just AS4 and the built in
editor of the IDE.
Not a major deal to not have the line number(s) but could be useful in
highlighting a printout with a
Quote:
'see line #'
.....

_________________
I'll believe corporations
are people when Texas executes one.


Last edited by tubecut on Jun 08, 2012 - 01:42 AM; edited 1 time in total
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
clawson
PostPosted: Jun 01, 2012 - 03:02 PM
10k+ Postman


Joined: Jul 18, 2005
Posts: 62354
Location: (using avr-gcc in) Finchingfield, Essex, England

Quote:

highlighting a printout with a

Does double-clicking any such message not take you to the line in question anyway? (most IDEs support this).

_________________
 
 View user's profile Send private message  
Reply with quote Back to top
tubecut
PostPosted: Jun 01, 2012 - 03:16 PM
Resident


Joined: May 27, 2002
Posts: 737
Location: Alabama USA

What I was talking about is, say, you
print out the listing and then want to
refer back to it later, just as hardcopy for later reference.
of course I could use an editor that
supports line numbers.
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
clawson
PostPosted: Jun 01, 2012 - 03:54 PM
10k+ Postman


Joined: Jul 18, 2005
Posts: 62354
Location: (using avr-gcc in) Finchingfield, Essex, England

Do people print code in this day and age?

_________________
 
 View user's profile Send private message  
Reply with quote Back to top
tubecut
PostPosted: Jun 01, 2012 - 04:17 PM
Resident


Joined: May 27, 2002
Posts: 737
Location: Alabama USA

Quote:
Do people print code in this day and age?

Oh yea, I do. I find keeping a hardcopy of something I had an issue with and then
discovered the answer is worth having the printout.


In the past I have lost data due to PC malfunctions and would have
benefited having the printout. Plus, it makes for a useful reference document at times. Cool

I found a couple of ATtiny12 (very old)
stuff I know and wanted to play around with them a little. Have to use assembly, no RAM.

I wish I still had a copy of the print out of a working project used for that
device, would have saved me some time.

I usually prefer to use C, but in this case.....

To add to the frustration, I seem to have a problem using R0 and the low order registers. Could not recall the proper usage. It seems that the MOV instruction works Ok but not LDI or LD.
Back to the reading... Sad
But that should be a different post.

_________________
I'll believe corporations
are people when Texas executes one.


Last edited by tubecut on Jun 08, 2012 - 01:43 AM; edited 1 time in total
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
clawson
PostPosted: Jun 01, 2012 - 04:47 PM
10k+ Postman


Joined: Jul 18, 2005
Posts: 62354
Location: (using avr-gcc in) Finchingfield, Essex, England

Isn't this why God invented USB memory sticks, code management systems and "the cloud"? Wink

_________________
 
 View user's profile Send private message  
Reply with quote Back to top
tubecut
PostPosted: Jun 01, 2012 - 04:59 PM
Resident


Joined: May 27, 2002
Posts: 737
Location: Alabama USA

USB can fail, code management requires
a computer and I don't care that much to use the cloud.

It very difficult to use the above mentioned when wasting time
on the privy. Rolling Eyes

Also, I have never seen a paper copy
suffer RAMnesia Laughing or get a virus.

BTW, I now remember that LD is an indirect load.

Have a great weekend Exclamation

_________________
I'll believe corporations
are people when Texas executes one.


Last edited by tubecut on Jun 08, 2012 - 01:43 AM; edited 1 time in total
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
JohanEkdahl
PostPosted: Jun 01, 2012 - 08:43 PM
10k+ Postman


Joined: Mar 27, 2002
Posts: 18583
Location: Lund, Sweden

In certain situations my brain is more compatible with paper and pen than a computer screen. Given a reasonably sized desk I can have both overview and detail of many hundred lines of code. I can also make notes and put Post-its at specific places.

Since the invention of paper and pen, they have had many hundred years of success. Must be something right with them.

(Or wrong with me..)
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
tubecut
PostPosted: Jun 01, 2012 - 08:56 PM
Resident


Joined: May 27, 2002
Posts: 737
Location: Alabama USA

Pen and paper - batteries Not Included Razz

_________________
I'll believe corporations
are people when Texas executes one.


Last edited by tubecut on Jun 08, 2012 - 01:44 AM; edited 1 time in total
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
ka7ehk
PostPosted: Jun 04, 2012 - 11:32 PM
10k+ Postman


Joined: Nov 22, 2002
Posts: 12054
Location: Tangent, OR, USA

Batteries not needed.

Jim

_________________
Jim Wagner
Oregon Research Electronics, Consulting Div.
Tangent, OR, USA

"The only thing standing between us and victory is defeat" P.G.Wodhouse in Wooster & Jeeves series
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT + 1 Hour
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2006 The PNphpBB Group
Credits