EmbeddedRelated.com
Forums
The 2024 Embedded Online Conference

Debugging assembly

Started by rasega November 24, 2005
On 2005-11-29, rasega <richi.rasega@gmail.com> wrote:

> Where to find the complete list of "assembly error codes" that the > assembler reports in the .lst file ?? > (error 235, error 250, ... )
In the manual for the assembler. -- Grant Edwards grante Yow! I'm ZIPPY the PINHEAD at and I'm totally committed visi.com to the festive mode.
Well,
it seems that the errors reported in the manual are of a form different
from what my assembler gives me back !!
In the manual I find error codes like this : Error Axxxx
What do I receive back is : Error xxx
Then I can't find the errors I'm searching for... :-(

OH my god, I found a little table in the pcbug manual :
235 Symbol: undefined symbol
250 Data: displacement too large (normally branch)

I suppose the first (235) is due to the second (250) error,
how to correct errors like this ??
The jump can't be long as far as my code needs !!

rasega wrote:
> OH my god, I found a little table in the pcbug manual : > 235 Symbol: undefined symbol > 250 Data: displacement too large (normally branch) > > I suppose the first (235) is due to the second (250) error, > how to correct errors like this ?? > The jump can't be long as far as my code needs !! >
Strategy 1: Use an absolute jump. If it's a conditional jump that's causing the problem, invert the test, and jump round the long jump which follows immediately, e.g. (no particular assembler) ... jz MilesAway ... becomes ... jnz Nearby ljmp MilesAway Nearby ... Strategy 2: don't write code that uses long jumps anyway. Paul Burke
I'm tryin' to modify the code without using long jumps...hoping in a
good solution !!
Thank You

rasega wrote:
> OH my god, I found a little table in the pcbug manual : > 235 Symbol: undefined symbol > 250 Data: displacement too large (normally branch) > > I suppose the first (235) is due to the second (250) error, > how to correct errors like this ?? > The jump can't be long as far as my code needs !!
No, the second is more likely to be due to the first. You need to define your symbols, chances are that you have missplet it somewhere.
>> OH my god, I found a little table in the pcbug manual : >> 235 Symbol: undefined symbol >> 250 Data: displacement too large (normally branch) >> >> I suppose the first (235) is due to the second (250) error, >> how to correct errors like this ?? >> The jump can't be long as far as my code needs !!
maybe the other way - the symbol is undefined. the assembler bravely tries to continue, using the value 0, which happens to be too far away? -- mac the na&#4294967295;f
Well, thank you everybody the answer was :
the labels are not accepted declared like this :
"label :"
by my assembler, than I've to do this :
"label EQU *"
Why ?? I don't know :-(

rasega wrote:

> Well, thank you everybody the answer was : > the labels are not accepted declared like this : > "label :" > by my assembler, than I've to do this : > "label EQU *" > Why ?? I don't know :-(
Did you try this (in Column1) ? Label:
Now I'm trying to "upload" the program on eeprom using JBUG11 but it
prompts the error :
"Argument(s) overlap excluded range"

What the problem should be ??
1) The program is bigger than available space
2) Some code try to write in protected register or memory ??
3) What else ??


The 2024 Embedded Online Conference