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
Debugging assembly
Started by ●November 24, 2005
Reply by ●November 24, 20052005-11-24
rasega wrote:> 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 > > RicI 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.
Reply by ●November 24, 20052005-11-24
Uhm, ok well, but the assembler don't seems to like this way ;-) and tells me just the number of errors :-((
Reply by ●November 24, 20052005-11-24
"rasega" <richi.rasega@gmail.com> wrote in message news:1132849405.629421.162980@f14g2000cwb.googlegroups.com...> 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
Reply by ●November 24, 20052005-11-24
rasega wrote:>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
Reply by ●November 24, 20052005-11-24
rasega wrote:> 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
Reply by ●November 24, 20052005-11-24
"rasega" <richi.rasega@gmail.com> wrote in message news:1132849405.629421.162980@f14g2000cwb.googlegroups.com...> 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
Reply by ●November 24, 20052005-11-24
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. Dan
Reply by ●November 25, 20052005-11-25
Reply by ●November 25, 20052005-11-25
rasega wrote:>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