| Author |
Message |
rasega
Guest
|
Posted:
Thu Nov 24, 2005 5:15 pm Post subject:
Debugging assembly |
|
|
Hi all,
I'm writing some routine for a Motorola 68HC11, but
it seems that debugging the code in assembler is a little bit difficult
!!
Please, what software do U suggest me to simplify this job ??
Assembling the code with asmhc11.exe give me back many errors,
but not what this error are and where thery are !!
Is there a way to know it ??
Thank U
Ric |
|
| Back to top |
|
 |
Guest
|
Posted:
Thu Nov 24, 2005 5:15 pm Post subject:
Re: Debugging assembly |
|
|
rasega wrote:
| Quote: | Hi all,
I'm writing some routine for a Motorola 68HC11, but
it seems that debugging the code in assembler is a little bit difficult
!!
Please, what software do U suggest me to simplify this job ??
Assembling the code with asmhc11.exe give me back many errors,
but not what this error are and where thery are !!
Is there a way to know it ??
Thank U
Ric
|
I take it you cannot get the program to assemble, debugging is normaly
the phase after you have got the program assembled, you need to take
each error 1 at a time starting from the top. 1 mistake can cause
multiple error messages to be generated so it's not as bad as it first
appears. Your assembler should tell you what the error is and what line
it appears on fix all the obvious ones first. |
|
| Back to top |
|
 |
rasega
Guest
|
Posted:
Thu Nov 24, 2005 5:15 pm Post subject:
Re: Debugging assembly |
|
|
Uhm, ok well,
but the assembler don't seems to like this way ;-)
and tells me just the number of errors :-(( |
|
| Back to top |
|
 |
James T. White
Guest
|
Posted:
Thu Nov 24, 2005 5:15 pm Post subject:
Re: Debugging assembly |
|
|
"rasega" <richi.rasega@gmail.com> wrote in message
news:1132849405.629421.162980@f14g2000cwb.googlegroups.com...
| Quote: | Uhm, ok well,
but the assembler don't seems to like this way ;-)
and tells me just the number of errors :-((
If your assembler only tells you the number of errors and not what the |
errors are, you need a new/different assembler.
--
James T. White |
|
| Back to top |
|
 |
Michael R. Kesti
Guest
|
Posted:
Thu Nov 24, 2005 5:15 pm Post subject:
Re: Debugging assembly |
|
|
rasega wrote:
| Quote: | Uhm, ok well,
but the assembler don't seems to like this way ;-)
and tells me just the number of errors :-((
|
As is so often the case, the answer may be to RTFM. Look there for
command line options that control the assembler's error output.
--
========================================================================
Michael Kesti | "And like, one and one don't make
| two, one and one make one."
mrkesti at comcast dot net | - The Who, Bargain |
|
| Back to top |
|
 |
Ryan Weihl
Guest
|
Posted:
Thu Nov 24, 2005 5:15 pm Post subject:
Re: Debugging assembly |
|
|
rasega wrote:
| Quote: | Uhm, ok well,
but the assembler don't seems to like this way ;-)
and tells me just the number of errors :-((
try to generate the .lst file (or whatever it is for MOT) and |
find out from there the details of the error(s)
rw |
|
| Back to top |
|
 |
Antti Keskinen
Guest
|
Posted:
Fri Nov 25, 2005 1:15 am Post subject:
Re: Debugging assembly |
|
|
"rasega" <richi.rasega@gmail.com> wrote in message
news:1132849405.629421.162980@f14g2000cwb.googlegroups.com...
| Quote: | Uhm, ok well,
but the assembler don't seems to like this way ;-)
and tells me just the number of errors :-((
|
Many assemblers provide you with listing files (.lst) that contain the
errorneous lines of the assembly program. When you run the assembler for you
code file, check if a similarly named .lst file appears in the directory.
This file usually contains the errors. Also, there might be a command-line
option to enable/disable the listing-file generation. The answer is to RTFM,
like someone so oftly put :)
- Antti Keskinen |
|
| Back to top |
|
 |
Dan N
Guest
|
Posted:
Fri Nov 25, 2005 7:53 am Post subject:
Re: Debugging assembly |
|
|
On Thu, 24 Nov 2005 06:27:37 -0800, rasega wrote:
| Quote: | Please, what software do U suggest me to simplify this job ??
|
Ditch assembly, get yourself a good C compiler.
Dan |
|
| Back to top |
|
 |
rasega
Guest
|
Posted:
Fri Nov 25, 2005 5:15 pm Post subject:
Re: Debugging assembly |
|
|
OK, thanks all,
I'll try some option of my assembler !!
Sorry but...what does RTFM means ?? |
|
| Back to top |
|
 |
Michael R. Kesti
Guest
|
Posted:
Fri Nov 25, 2005 5:15 pm Post subject:
Re: Debugging assembly |
|
|
rasega wrote:
| Quote: | OK, thanks all,
I'll try some option of my assembler !!
Sorry but...what does RTFM means ??
|
http://www.google.com/search?hl=en&q=RTFM
--
========================================================================
Michael Kesti | "And like, one and one don't make
| two, one and one make one."
mrkesti at comcast dot net | - The Who, Bargain |
|
| Back to top |
|
 |
Ian Bell
Guest
|
Posted:
Sat Nov 26, 2005 1:15 am Post subject:
Re: Debugging assembly |
|
|
Leif Holmgren wrote:
| Quote: | Ditch assembly, get yourself a good C compiler.
Bad advice, that's just assembly with a different set of mnemonics ;-)
|
And a whole extra bunch or errors to make.
Ian |
|
| Back to top |
|
 |
Leif Holmgren
Guest
|
Posted:
Sat Nov 26, 2005 1:15 am Post subject:
Re: Debugging assembly |
|
|
| Quote: | Ditch assembly, get yourself a good C compiler.
|
Bad advice, that's just assembly with a different set of mnemonics ;-) |
|
| Back to top |
|
 |
Paul Keinanen
Guest
|
Posted:
Sat Nov 26, 2005 3:56 pm Post subject:
Re: Debugging assembly |
|
|
On Fri, 25 Nov 2005 09:53:14 +0800, Dan N <dan@localhost.localdomain>
wrote:
| Quote: | On Thu, 24 Nov 2005 06:27:37 -0800, rasega wrote:
Please, what software do U suggest me to simplify this job ??
Ditch assembly, get yourself a good C compiler.
|
While assembly might not be a cost effective tool for implementing
large (more than a few kilobytes) systems, understanding of
assembly/disassembly at least at a rudimentary level is essential for
working with embedded systems.
Paul |
|
| Back to top |
|
 |
Paul Burke
Guest
|
Posted:
Mon Nov 28, 2005 9:15 am Post subject:
Re: Debugging assembly |
|
|
Paul Keinanen wrote:
| Quote: | While assembly might not be a cost effective tool for implementing
large (more than a few kilobytes) systems, understanding of
assembly/disassembly at least at a rudimentary level is essential for
working with embedded systems.
|
No, I've worked with embedded systems for 25 years now, and whereas I
had to learn the assembler in the earlier days, everything is in C now.
It's still not totally portable, because of the closeness to the
hardware and its vagaries, but I'm supporting four processors at the
moment, and most of the time I couldn't care which is which.
You only really need assembler if you've underestimated the processor
capacity, or you have to support someone else's system, or you're
writing the compiler.
Paul Burke |
|
| Back to top |
|
 |
Meindert Sprang
Guest
|
Posted:
Mon Nov 28, 2005 3:17 pm Post subject:
Re: Debugging assembly |
|
|
"Paul Burke" <paul@scazon.com> wrote in message
news:3uvss3F13gnenU1@individual.net...
| Quote: | You only really need assembler if you've underestimated the processor
capacity, or you have to support someone else's system, or you're
writing the compiler.
|
Or if you want to write in C but want to get the most out of
size/performance. In such cases I frequently check the generated assembly
from the compiler.
Meindert |
|
| Back to top |
|
 |
|
|
|
|