Re: [hatari-devel] How to detect Hatari?

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


Le 04/02/2017 à 12:00, Christian Zietz a écrit :
Nicolas Pomarède schrieb:

You need to enable natfeats extension, then you can call the nf_name
method for example. But by default natfeats is not enabled, so you can't
expect other people to have it too in case you want your program to
detect Hatari or not.

As far as I know, Steem can be detected using the interface first
introduced a long time ago by PaCifiST:
<http://toshyp.atari.org/en/00e005.html>. Support for this of course
requires the emulator to intercept calls to the Vsync XBIOS call. I
don't know if Hatari wants to do this.


This is not really different from natfeats, but the whole question is : should this be enabled by default or not ? In the case of steem it uses address $ffc1xx for a few "hidden" registers

They are unlikely to be used by any "normal" ST programs, but in case you access them anyway I think it's better if the default behaviour of the emulator is to disable these features and return the expected content of theses registers on real HW.

Maybe we could add a more complex scenario to trigger emulator specific functions, something that no program is supposed to do by luck (for example, read $ff8240 then read ffa000 then read ff8210, everything in less than 100 cycles : then enable natfeats even if it was disabled before)

Nicolas



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