Re: [hatari-devel] asm56000.ttp problem |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: hatari-devel@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [hatari-devel] asm56000.ttp problem
- From: Thomas Huth <th.huth@xxxxxxxxx>
- Date: Mon, 1 Oct 2018 21:28:27 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1538422112; bh=Vldk8+qvYyMKCHQ6JkIK9uoRujAg/fgeSGFNMhLDwTM=; h=Date:From:To:Subject:From; b=e3EtnbUkleaYPWO5RK4Hvo4inB9U0gHr5OZGzOXSKEAyR7UOVKHNJ/MRbtayb6NGq ZQMSzgvMJwxxoE/gQ0D76Y0cPbF4TmngOGNk9s7wUhjL7cYNBTQFemumr0o8DM7S9c sYsXSkpeaoDZHHHtn/3hzjlac/DYNgTkuMDmqjBlWAB8wpjnVeakZm219jntSjcvOI IP110UrMzCbgxJXemzPgpbf3UxQcQNmFDaZ2iO8GkCHWmMNjr6jNC6gGjoibVsSAAW 9n7W4tqt1qpL9CgVCCmTpvSy8dfczYewjx+PDVA4wdmPp9Z4l0S+I87n21ONQnhW17 GNRbtnqkizOLA==
Am Mon, 1 Oct 2018 21:31:03 +0300
schrieb Eero Tamminen <oak@xxxxxxxxxxxxxx>:
[...]
>
> Why 56000 would do those extra Fseek()s *only* with GEMDOS HD?
>
>
> The only differences in GEMDOS (and XBIOS) calls I had noticed
> were:
>
> * GEMDOS HD returning higher FD indexes from Fopen(), to avoid
> conflicting with TOS internal FD values.
Well, guess what: That's exactly the issue with this program: It
expects small file handles. I guess the author blindly assumed that
file handles would always be less than 40 or something similar ... it
seems to work if you decrease BASE_FILEHANDLE in gemdos.c for example
to 12 instead of 64. ==> IMHO it's a bug in the program, not in Hatari.
This could also happen with real TOS if it uses bigger file handles for
some reasons. I don't think there is a clean way to fix this on the
Hatari side, since Hatari certainly has to stay out of area that TOS
uses for its file handles.
Thomas