Re: Bus error handling problem
Posted: 19 May 2022 17:40
Would seem so.sporniket wrote: 19 May 2022 17:29 It looks like accessing a1+2 does trigger the error handler then ?
We welcome retro users & hardware gurus alike! Come and join the party :)
https://www.exxosforum.co.uk/forum/
Would seem so.sporniket wrote: 19 May 2022 17:29 It looks like accessing a1+2 does trigger the error handler then ?
From that wording, I would hazard a guess that by using a long, your assembly variable space is stepping into an odd boundary (if compiling on a 68000, which I guess you are?) causing an odd address/bus error. This would require the STOS variables to be words/evenly aligned to avoid this.exxos wrote: 19 May 2022 16:33 There is still something odd going on :roll:
I can peek a byte or word in STOS and I get a number back, but a LONG I get BERR.
:thumbup: Glad you got it sorted.