Re: A92: Address Error?


[Prev][Next][Index][Thread]

Re: A92: Address Error?



Frozen wrote:
> 
> Could someone tell me the meaning of the Address Error? Is this a Fargo
> error, or a program mistake? Thanks,
> Jav

It's usually one of two things:

 1) You've tried to access a word/longword at an odd (as in uneven)
adress. This mostly happens with byte data. Just make sure all byte data
is at the end of the program, or that all separate datablocks have a
length of 2*x. Put in a nop if necessary.

 2) You have not pushed/popped the same amount of data to/from the
stack. Then, when you return from the subroutine/interrupt/program, the
processor jumps to the wrong adress (whenever you jump like that it
stores the current adress to the stack) and anything can happen...


References: