Re: [hatari-devel] compiling with ahcc from Hatari and command line ?

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


Hi,

On 12.9.2023 13.40, Nicolas Pomarède wrote:
Le 10/09/2023 à 23:53, Eero Tamminen a écrit :
Assuming AHCC, project file and sources are in same directory, you can use something like this: $ hatari-prg-args -m --cpulevel 3 --trace os_base  -- ahcc_p.ttp mfp_ser.prj

thanks for the infos, it worked.

So, I added a sleep to scc_ser.c in main() :

         Super(sp);
+        sleep(2);
         return 0;

but when I run the test in test/serial I get an error :

Test FAILED. Hatari exited with status 1.
ERROR: Unhandled exception!
<end of output>

This seems to be because "sleep" calls supexec and the test runs with "--tos none" using a faketos that will not support gemdos/bios/... calls.

Any idea how it could be changed ? Add a "minimal" sleep function that uses the vbl counter at $466 or maybe run test/serial with a tos != none ?

The whole point of FakeTOS is that we do not want extra dep and boot slowdown for our "make test" unit testing target.

=> I think the only option is to add minimal sleep function.

If "hz_200" counter ($4ba) does not require TOS to work, I think minimal sleep should be based on it instead of VBL counter, so that it's independent of VBL frequency.


	- Eero



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