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.
Debugging assembly
Started by ●November 24, 2005
Reply by ●November 29, 20052005-11-29
Reply by ●November 30, 20052005-11-30
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... :-(
Reply by ●November 30, 20052005-11-30
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 !!
Reply by ●November 30, 20052005-11-30
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
Reply by ●November 30, 20052005-11-30
Reply by ●November 30, 20052005-11-30
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.
Reply by ●November 30, 20052005-11-30
>> 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�f
Reply by ●December 2, 20052005-12-02
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 :-(
Reply by ●December 2, 20052005-12-02
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:
Reply by ●December 5, 20052005-12-05