Re: [hatari-devel] Falcon STE bus compatibility setup code?

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


Hi,

On 12/02/2017 01:58 PM, Nicolas Pomarède wrote:
Le 01/12/2017 à 23:53, Eero Tamminen a écrit :
That is:
1. If BUS_COMPATIBLE, set relevant register ranges to void handlers
2. Could overwrite those ranges (but doesn't, I checked)

It actually warns if register is already set.


3. If BUS_COMPATIBLE, set again PSG register range to void handlers

Why not do something like in the attached patch?

certainly some code was added at different time and it was not "factorized" as it could be.

If you want to remove one of those 2 parts, I'd rather you keep the first one in the "case" for MahcineType (because we already have some IoMem_Fix_xxxx calls for mega st/mega ste, so this looks like a good place to keep it for falcon).
Then remove the "else" part later that apply to Falcon's YM registers.

Right, with the check, it's actually better to be this way.  Commited.


	- Eero



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/