[hatari-devel] Some more demos that fail with 1.4
Anders Eriksson
ae at dhs.nu
Sun May 15 14:12:31 CEST 2011
On Sat, 14 May 2011, Nicolas Pomarède wrote:
>>> 1.
>>> BBS Intro 3 / Lynx
>>> http://files.dhs.nu/files_demo/lynxbbs3.zip
>>> http://pouet.net/prod.php?which=30934
>>>
>>> a) Crashes with double buserror after intro logo
>>
>> Very strange, the demo crashes indeed (try to write at address $1) and
>> goes back to gem, with the music still playing.
>>
>> I didn't find the cause for now, as it's STF demo (no blitter or dma
>> sound), could be a cpu emulation problem, but very hard to track among
>> the whole demo.
>>
>
> OK, I finally fixed it. The demo is using voluntarily some address errors in
> the 3D routines (to avoid some costly checks, it's sometimes more efficient
> to "crash" and handle the result with a custom address error handler, instead
> of doing checks every time ; many optimized 3D demos often use such
> techniques).
>
> JMP / JSR were not testing the new PC was even, which prevented the demo from
> doing the expected exception.
Hi,
I confirm that it works now. Well done!
Ugly ST-code for the win :)
--
Anders Eriksson
ae at dhs.nu http://www.dhs.nu/
ae at atari.org http://www.atari.org/
More information about the hatari-devel
mailing list