Bus error handling problem

News,announcements,programming,fixes,game patches & discussions.

Moderator: troed

User avatar
exxos
Site Admin
Site Admin
Posts: 23499
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: Bus error handling problem

Post by exxos »

sporniket wrote: Thu May 19, 2022 5:29 pm It looks like accessing a1+2 does trigger the error handler then ?
Would seem so.
https://www.exxosforum.co.uk/atari/ All my hardware guides - mods - games - STOS
https://www.exxosforum.co.uk/atari/store2/ - All my hardware mods for sale - Please help support by making a purchase.
viewtopic.php?f=17&t=1585 Have you done the Mandatory Fixes ?
Just because a lot of people agree on something, doesn't make it a fact. ~exxos ~
People should find solutions to problems, not find problems with solutions.
User avatar
mrbombermillzy
Posts: 1441
Joined: Sun Jun 03, 2018 7:37 pm

Re: Bus error handling problem

Post by mrbombermillzy »

exxos wrote: Thu May 19, 2022 4:33 pm 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.
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.

It's possible that STOS only uses 16 bit words for its data handling...I wouldn't know.
User avatar
exxos
Site Admin
Site Admin
Posts: 23499
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: Bus error handling problem

Post by exxos »

@mrbombermillzy I was only peeking byte or word in STOS. The assembly code was checking for a long. Indeed I confirmed that long failed in STOS as well. Flashyclock registers are 16bit so it wouldn't respond to long access. So now the asm code checks for words, it's all fine now :)
https://www.exxosforum.co.uk/atari/ All my hardware guides - mods - games - STOS
https://www.exxosforum.co.uk/atari/store2/ - All my hardware mods for sale - Please help support by making a purchase.
viewtopic.php?f=17&t=1585 Have you done the Mandatory Fixes ?
Just because a lot of people agree on something, doesn't make it a fact. ~exxos ~
People should find solutions to problems, not find problems with solutions.
User avatar
mrbombermillzy
Posts: 1441
Joined: Sun Jun 03, 2018 7:37 pm

Re: Bus error handling problem

Post by mrbombermillzy »

exxos wrote: Thu May 19, 2022 8:54 pm it's all fine now :)
:thumbup: Glad you got it sorted.
Post Reply

Return to “SOFTWARE PROGRAMMING & DISCUSSION”