| Author |
Message |
|
|
Posted: Jun 01, 2012 - 12:50 AM |
|

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
|
| |
|
|
|
|
|
Posted: Jun 01, 2012 - 01:25 AM |
|

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
|
| |
|
|
|
|
|
Posted: Jun 01, 2012 - 02:33 AM |
|


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
|
| |
|
|
|
|
|
Posted: Jun 01, 2012 - 02:56 PM |
|

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
|
| |
|
|
|
|
|
Posted: Jun 01, 2012 - 03:02 PM |
|


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). |
_________________
|
| |
|
|
|
|
|
Posted: Jun 01, 2012 - 03:16 PM |
|

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. |
|
|
| |
|
|
|
|
|
Posted: Jun 01, 2012 - 03:54 PM |
|


Joined: Jul 18, 2005
Posts: 62354
Location: (using avr-gcc in) Finchingfield, Essex, England
|
|
| Do people print code in this day and age? |
_________________
|
| |
|
|
|
|
|
Posted: Jun 01, 2012 - 04:17 PM |
|

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.
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...
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
|
| |
|
|
|
|
|
Posted: Jun 01, 2012 - 04:47 PM |
|


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"?  |
_________________
|
| |
|
|
|
|
|
Posted: Jun 01, 2012 - 04:59 PM |
|

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.
Also, I have never seen a paper copy
suffer RAMnesia or get a virus.
BTW, I now remember that LD is an indirect load.
Have a great weekend  |
_________________ 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
|
| |
|
|
|
|
|
Posted: Jun 01, 2012 - 08:43 PM |
|


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..) |
|
|
| |
|
|
|
|
|
Posted: Jun 01, 2012 - 08:56 PM |
|

Joined: May 27, 2002
Posts: 737
Location: Alabama USA
|
|
Pen and paper - batteries Not Included  |
_________________ 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
|
| |
|
|
|
|
|
Posted: Jun 04, 2012 - 11:32 PM |
|


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
|
| |
|
|
|
|
|